{"id":21569323,"url":"https://github.com/aweirddev/omu","last_synced_at":"2025-03-18T05:44:53.285Z","repository":{"id":264025962,"uuid":"890416143","full_name":"AWeirdDev/omu","owner":"AWeirdDev","description":"rust discord api wrapper (wip)","archived":false,"fork":false,"pushed_at":"2025-03-09T14:48:03.000Z","size":96,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-09T15:29:52.880Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AWeirdDev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-18T14:29:52.000Z","updated_at":"2025-03-09T14:48:06.000Z","dependencies_parsed_at":"2024-11-21T16:20:42.896Z","dependency_job_id":"3ca7053f-c402-4cb1-962f-1960ea70e5cb","html_url":"https://github.com/AWeirdDev/omu","commit_stats":null,"previous_names":["aweirddev/omu"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AWeirdDev%2Fomu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AWeirdDev%2Fomu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AWeirdDev%2Fomu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AWeirdDev%2Fomu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AWeirdDev","download_url":"https://codeload.github.com/AWeirdDev/omu/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244166641,"owners_count":20409178,"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":[],"created_at":"2024-11-24T11:09:10.174Z","updated_at":"2025-03-18T05:44:53.280Z","avatar_url":"https://github.com/AWeirdDev.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"omu is a simple rust discord api wrapper. it's as simple as it should be.\n\nbelow is the redesigned api.\n\n```rust\nuse anyhow::Result;\nuse omu::*;\n\n// Make it constant to access from anywhere\nconst CLIENT: Client = Client::new(\n    Some(Intents::MESSAGE_CONTENT\n                | Intents::GUILD_MESSAGES\n                | Intents::DIRECT_MESSAGES\n                | Intents::GUILDS)\n);\n\n#[event(on_message)]\nasync fn on_message(message: Message) -\u003e Result\u003c()\u003e {\n  message.reply(format!(\"Hello, {}\", message.author.mention())).await?;\n\n  Ok(())\n}\n\n#[tokio::main]\nasync fn main() -\u003e Result\u003c()\u003e {\n    CLIENT.add(on_message);\n    \n    CLIENT.run(\u0026dotenv::var(\"MY_TOKEN\")).await?;\n}\n```\n\nyou handle events just like going through an iterator, and we do the rest, so that there's no structs, impls, or other weird stuff involved. cmon, no one likes them in your discord bot project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faweirddev%2Fomu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faweirddev%2Fomu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faweirddev%2Fomu/lists"}