-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
THANKS bit0r1n FOR THIS amazing SDK !!!!!!
- Loading branch information
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
--- | ||
title: boticordnim | ||
description: Utility for interaction with Boticord API on Nim | ||
slug: /sdk/nim | ||
--- | ||
|
||
Utility for interaction with Boticord API on Nim. | ||
|
||
[GitHub repo](https://github.com/bit0r1n/boticordnim) | ||
[Docs](https://bit0r1n.github.io/boticordnim/) | ||
|
||
# Installation | ||
|
||
Enter this command to install package | ||
|
||
``` | ||
nimble install https://github.com/bit0r1n/boticordnim | ||
``` | ||
|
||
# Examples | ||
Get info from some resources: | ||
|
||
```nim | ||
import boticordnim/[bots, users, servers] | ||
import asyncdispatch, strformat | ||
let | ||
botId = "974297735559806986" | ||
bot = waitFor getBot(botId) # or getBot(id = botId) | ||
serverId = "992158889116180502" | ||
server = waitFor getServer(serverId) | ||
userId = "267729391172321290" | ||
user = waitFor getUser(userId) | ||
echo fmt"Name of {botId} resource (bots): {bot.name}" | ||
echo fmt"Name of {serverId} resource (servers): {server.name}" | ||
echo fmt"Name of {userId} resource (users): {user.username}" | ||
``` | ||
Other examples are located in [SDK's repository](https://github.com/bit0r1n/boticordnim/tree/master/examples). | ||
|
||
## Need help? | ||
|
||
If you need any help, you can create an issue in [SDK's repository](https://github.com/bit0r1n/boticordnim/issues). | ||
|
||
Library developer: [`bit0r1n`](https://boticord.top/profile/267729391172321290) |