{"id":13701998,"url":"https://github.com/Arthur-Damasceno/ruvolt","last_synced_at":"2025-05-05T04:30:40.186Z","repository":{"id":43071963,"uuid":"451454870","full_name":"Arthur-Damasceno/ruvolt","owner":"Arthur-Damasceno","description":"An API wrapper for Revolt written in Rust","archived":false,"fork":false,"pushed_at":"2022-07-25T01:06:46.000Z","size":210,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-29T01:19:55.097Z","etag":null,"topics":["api-library","api-wrapper","revolt"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Arthur-Damasceno.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-01-24T12:27:12.000Z","updated_at":"2024-03-18T21:35:14.000Z","dependencies_parsed_at":"2022-09-10T05:23:27.503Z","dependency_job_id":null,"html_url":"https://github.com/Arthur-Damasceno/ruvolt","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arthur-Damasceno%2Fruvolt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arthur-Damasceno%2Fruvolt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arthur-Damasceno%2Fruvolt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arthur-Damasceno%2Fruvolt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Arthur-Damasceno","download_url":"https://codeload.github.com/Arthur-Damasceno/ruvolt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252439365,"owners_count":21747993,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-library","api-wrapper","revolt"],"created_at":"2024-08-02T21:00:29.268Z","updated_at":"2025-05-05T04:30:39.798Z","avatar_url":"https://github.com/Arthur-Damasceno.png","language":"Rust","funding_links":[],"categories":["💻 API Libraries"],"sub_categories":["Rust"],"readme":"# Ruvolt\n`ruvolt` is an API library to interact with [Revolt Chat](https://revolt.chat) APIs and create bots.\n\n## Getting started\n\n### Installation\nTo use `ruvolt` we need [ruvolt](https://github.com/Arthur-Damasceno/ruvolt), [async-trait](https://github.com/dtolnay/async-trait) and an asynchronous runtime, let's use the [tokio](https://github.com/tokio-rs/tokio).\nAdd this to your `Cargo.toml` *dependencies* section and run `cargo build` to compile dependencies.\n\n```toml\nruvolt = \"*\"\nasync-trait = \"*\"\ntokio = { version = \"*\", features = [\"macros\", \"rt-multi-thread\"] }\n```\n\n### Example - Ping/Pong bot\n\n```rust\nuse {\n    async_trait::async_trait,\n    ruvolt::{models::Message, Client, Context, EventHandler, Result},\n    std::env,\n};\n\nstruct Handler;\n\n#[async_trait]\nimpl EventHandler for Handler {\n    async fn message(\u0026self, cx: Context, msg: Message) {\n        let content = msg.content.to_string();\n\n        if content == \"!ping\" {\n            msg.reply(\u0026cx, \"Pong!\", true).await.ok();\n        }\n    }\n}\n\n#[tokio::main]\nasync fn main() -\u003e Result {\n    let token = env::var(\"TOKEN\").unwrap();\n    let mut client = Client::new(Handler, token).await?;\n\n    client.listen().await\n}\n```\n\n### Documentation\n\n#### Rust docs\nA documentation generated by [rustdoc](https://doc.rust-lang.org/rustdoc/what-is-rustdoc.html), you can find [here](https://docs.rs/ruvolt).\n\n#### Examples\n - [A more complex Ping/Pong bot](examples/ping_pong.rs)\n - [A counter bot](examples/counter.rs)\n\n## License\nThis project is under the [MIT](LICENSE) license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FArthur-Damasceno%2Fruvolt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FArthur-Damasceno%2Fruvolt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FArthur-Damasceno%2Fruvolt/lists"}