DiscordBotAiStarter

    This is a simple starter Discord Bot. Its main use case is that it's using the OpenAI API to generate responses to messages in a Discord chat. The bot is written in C and uses the DSharpPlus library to interact with the Discord API and the RestSharp library to make HTTP requests to the OpenAI API. It also has some small other features.

    Language: csharp

    Author: Henry Vandervort (@henryvandervort5533)

    137 stars · 641 views

    Files

    • CONTRIBUTING.md (markdown)
    • IWatch2GetherService.cs (csharp)
    • CryptoService.cs (csharp)
    • OpenWeatherMapService.cs (csharp)
    • InteractionContextWrapper.cs (csharp)
    • OpenAiServiceTests.cs (csharp)
    • Watch2GetherServiceTests.cs (csharp)
    • ATTRIBUTION.md (markdown)
    • excuses.json (json)
    • IOpenWeatherMapService.cs (csharp)
    • ICryptoService.cs (csharp)
    • IHelperService.cs (csharp)
    • IOpenAiService.cs (csharp)
    • ISlashCommandsService.cs (csharp)
    • README.md (markdown)
    • agent.md (markdown)
    • appsettings.example.json (json)
    • docker-compose.yml (yaml)
    • package-lock.json (json)
    • WeatherDataModel.cs (csharp)
    • HttpService.cs (csharp)
    • SlashCommandsService.cs (csharp)
    • IHttpService.cs (csharp)
    • SlashCommands.cs (csharp)
    • OpenAiService.cs (csharp)
    • package.json (json)
    • CryptoServiceTests.cs (csharp)
    • HttpServiceTests.cs (csharp)
    • LICENSE (plaintext)
    • renovate.json (json)
    • IInteractionContextWrapper.cs (csharp)
    • SECURITY.md (markdown)
    • DiscordBot ()
    • Data ()
    • Interfaces ()
    • Models ()
    • Services ()
    • HelperServiceTests.cs (csharp)
    • Wrapper ()
    • DiscordBotTests ()
    • ServiceTests ()
    • HelperService.cs (csharp)
    • OpenWeatherMapServiceTests.cs (csharp)
    • Program.cs (csharp)
    • CODE_OF_CONDUCT.md (markdown)
    • pnpm-lock.yaml (yaml)
    • Watch2GetherService.cs (csharp)

    Loading code snippet…