Skip to content
This repository has been archived by the owner on Jun 7, 2023. It is now read-only.

grey-cat-1908/boticordrs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Archived

The easiest way to use BotiCord API in Rust · Docs

Usage

[dependencies]
boticordrs = "0.1.3"

Main Information:

boticordrs doesn't require using Serenity or Twilight. It makes working with the BotiCord API easier. There are only some methods to use, but it's all what do we have in BotiCord API.

If you have any questions you can ask Marakarka#0575 on discord.

What about BotiCord Webhooks?

BotiCord Webhooks are not implemented in boticordrs.

What about AutoLoop?

There is an example (with serenity). You can find it in the examples folder in our repository.

Examples:

Post Some Stats:

use boticordrs::{BoticordClient};
use boticordrs::types::{BotStats};

#[tokio::main]
async fn main() {
    let client = BoticordClient::new("your token".to_string(), 2).expect("failed client");

    let stats = BotStats {servers: 2514, shards: 3, users: 338250};

    match client.post_bot_stats(stats).await {
        Ok(_) => {
            println!("Well Done!")
        },
        Err(e) => eprintln!("{}", e),
    }
}

About

An API wrapper for BotiCord API written in Rust (by @grey-cat-1908)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages