{"id":45654085,"url":"https://github.com/FluxpointDev/StoatSharp","last_synced_at":"2026-03-09T13:01:14.982Z","repository":{"id":44597017,"uuid":"405766716","full_name":"FluxpointDev/StoatSharp","owner":"FluxpointDev","description":"A C# lib for using the revolt chat API and connecting to the gateway to get events.","archived":false,"fork":false,"pushed_at":"2026-02-17T23:11:01.000Z","size":1818,"stargazers_count":19,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-02-18T04:28:49.771Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://rvlt.gg/N33Rf6DE","language":"C#","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/FluxpointDev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"patreon":"fluxpointdev","custom":"https://fluxpoint.dev/donate"}},"created_at":"2021-09-12T22:25:32.000Z","updated_at":"2026-02-17T23:11:05.000Z","dependencies_parsed_at":"2024-10-24T20:48:23.800Z","dependency_job_id":"9dcb709c-60ff-4da7-b0d8-f6fe727d7446","html_url":"https://github.com/FluxpointDev/StoatSharp","commit_stats":null,"previous_names":["xxbuilderbxx/revoltsharp","fluxpointdev/stoatsharp","fluxpointdev/revoltsharp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/FluxpointDev/StoatSharp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FluxpointDev%2FStoatSharp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FluxpointDev%2FStoatSharp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FluxpointDev%2FStoatSharp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FluxpointDev%2FStoatSharp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FluxpointDev","download_url":"https://codeload.github.com/FluxpointDev/StoatSharp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FluxpointDev%2FStoatSharp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30297111,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T11:12:22.024Z","status":"ssl_error","status_checked_at":"2026-03-09T11:10:54.577Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2026-02-24T08:00:33.529Z","updated_at":"2026-03-09T13:01:14.973Z","avatar_url":"https://github.com/FluxpointDev.png","language":"C#","funding_links":["https://patreon.com/fluxpointdev","https://fluxpoint.dev/donate"],"categories":["💻 API Libraries"],"sub_categories":["C#"],"readme":"# Info\nStoatSharp is a bot lib used to connect to [Stoat](https://Stoat.chat/) chat app.\n\nThis lib supports both bots and user accounts.\n\n### Core Features\n- `Stability:` The lib is designed to handle errors and exceptions with logging and nice error messages to help you build a public bot.\n- `Easy to Use:` StoatSharp has similar design principals to discord.net with easy to use objects and properties.\n- `Connection:` The WebSocket is error proof and will keep the connection alive even during an outage or unstable network!\n- `Efficient:` You can run a private 1 server bot using 30mb of ram (with command handling, commands and cache) or a public bot in 450+ servers with 210mb of ram that can run on any $3 hosting service with 1GB ram!\n- `Cache:` The lib will cache reuseable data for an easy to use and fast experience, especially with events.\n- `Requests:` You can send custom requests using Client.Rest.SendRequest that uses disposable streams and buffers for memory efficiency.\n- `Documented:` Most of the code is documented with xml code comments or you can see the docs here https://docs.fluxpoint.dev/Stoatsharp\n- `Command Handler:` StoatSharp has a built-in command handler that can parse commands with a prefix and you can create command modules to run code.\n\n# Support\nJoin the StoatSharp server for support and meet other C# developers!\n\nhttps://stt.gg/N33Rf6DE\n\n# Documentation\nThe library is documented in code and also has a docs site that you can browser with guides!\n\nhttps://docs.fluxpoint.dev/Stoatsharp\n\n# Install\nYou can download the lib in visual studio/code using this [Nuget Package](https://www.nuget.org/packages/StoatSharp)\n\nOnce it's installed you can use this basic example.\n```cs\nstatic void Main(string[] args)\n{\n    Start().GetAwaiter().GetResult();\n}\n\npublic static StoatClient Client;\npublic static async Task Start()\n{\n    Client = new StoatClient(ClientMode.WebSocket);\n    await Client.LoginAsync(Token, AccountType.Bot);\n    await Client.StartAsync();\n    await Task.Delay(-1);\n}\n```\n\n# Commands\nThis lib also includes and easy to use command system for setting up commands and using data.\nBig thanks to [Discord.net](https://github.com/discord-net/Discord.Net) for the internal command handler system, this was modified to work with Stoat and the classes.\n\nHere is an example on how to setup commands.\n```cs\nclass Program\n{\n    static void Main(string[] args)\n    public static StoatClient Client;\n    {\n        Start().GetAwaiter().GetResult();\n    }\n\n    public static async Task Start()\n    {\n        Client = new StoatClient(\"Bot Token\", ClientMode.WebSocket);\n        await Client.StartAsync();\n        CommandHandler Commands = new CommandHandler(Client);\n        Commands.Service.AddModulesAsync(Assembly.GetEntryAssembly(), null);\n        await Task.Delay(-1);\n    }\n}\n\npublic class CommandHandler\n{\n    public CommandHandler(StoatClient client)\n    {\n        Client = client;\n        client.OnMessageRecieved += Client_OnMessageRecieved;\n    }\n\t\n    public StoatClient Client;\n    public CommandService Service = new CommandService();\n    private void Client_OnMessageRecieved(Message msg)\n        {\n            UserMessage Message = msg as UserMessage;\n            if (Message == null || Message.Author.IsBot)\n                return;\n            int argPos = 0;\n            if (!(Message.HasCharPrefix('!', ref argPos) || Message.HasMentionPrefix(Client.CurrentUser, ref argPos)))\n                return;\n            CommandContext context = new CommandContext(Client, Message);\n            Service.ExecuteAsync(context, argPos, null);\n        }\n}\n```\n\n### Create a command\n```cs\npublic class CmdTest : ModuleBase\n{\n    [Command(\"hi\")]\n    public async Task Hi()\n    {\n        await ReplyAsync(\"Hi \" + Context.User.Username);\n    }\n\n    [Command(\"say\")]\n    public async Task Say([Remainder] string text)\n    {\n        await ReplyAsync(text);\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFluxpointDev%2FStoatSharp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FFluxpointDev%2FStoatSharp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFluxpointDev%2FStoatSharp/lists"}