A cross-platform Discord bot based on Discord.Net.
May want to build with Mono to run on Linux.
Made for educational purposes, made open-source so I can get Travis and AppVeyor for free.
No support will be given for now, at least until it's very functional (or useful).
- .NET Framework 4.6 (or Mono)
- Discord.Net
- Newtonsoft.Json
All of those are obtainable from NuGet.
ChatBot.cs
- Connects to Discord, hooks chat messages and generates a bot invite link.ChatCommands.cs
- Handles chat commands in a way that is really easy to manage, inspired by SourceMod's way of registering commands. Also has a few basic commands likeclean
. Includeshelp
which prints all of the existing commands.Command.cs
- The commands class. Includes derived classes for system commands (console commands) and chat commands.Config.cs
- Configuration class, has a save method and is loaded in a separate file.General.cs
- Some "constant" settings. Such as the application's name, author's name, console prefixes or the application's version.Input.cs
- A separate thread which handles console input and passes it toSystemCommands
.Program.cs
- Entry point for the program. Launches threads, has the configuration file object and also loads it.SystemCommands.cs
- Includes a few basic console commands, writehelp
to list them.
GNU GPL v3, see LICENSE.