Skip to content

raulssorban/Megabot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 

Repository files navigation

Logo

A very extensive Discord bot launcher and manager using Discord.NET

Build Status

Download it from HERE.

Idea

I love automating my development environment, so I decided to write something very extensive and easy to create Bots and bot Mods and execute them very easily and fast. There is also support for game mods.

Usage

  1. Create a folder "Plugins" in the root folder of the launcher and put in the bots along with the mods. Currently the bot assemblies need to speak to mods that are referenced (for initialization) in the same folder.
  2. Launch the launcher and be sure the loader loaded assemblies properly, just by checking the counts. Each bot has an ID which is used to can call a named bot to launch when executing start <your_bot_id> in the console.
  3. Add your bot application token, by using -token <your_app_token> in the console. You can do all this fast by creating a shortcut of the launcher and at the end of the Target, add the lines accordingly. (e.g Megabot.exe -token <token> -start <bot_id>)

Use cmds command when in the console, there's description for everything (that's important).

For more information, read the Wikis of this repository. Take a look at PTGen.exe, on how to create bots, mods

Known Issues

The project is quite large and the error handling isn't the best. Most common Discord .NET issues that I've been occurring are handled appropriately and keeps the bot alive. At the time, it isn't recommended to use the application for bots in huge Discord servers - still working on optimizing execution and multiple guild support (for now, it is best recommended having the bot working on 1-2 different servers.

Specs & References

  • Discord.NET (Core and everything else)
  • Humanlights.System (Proudly self written plugin which eases my development immensely)
  • Megabot.Console (Customly selfwritten command-based console with gorgeous logging, imo)
  • Megabot.Data (Base classes and what's in this picture)
  • Newtonsoft.JS-duh (Yeah)
  • Costura + Fody (Embeds all project references in the Megabot.exe file, so the whole export is one bigger file)

Tested on:

  • Processor: AMD Ryzen 5 1600 Six-Core Processor (12 CPUs), ~3.2GHz
  • Memory: 8192MB RAM
  • Graphics: NVIDIA GeForce GTX 1060 6GB
  • DirectX: 12

License

I'm applying the GNU (General Public License) as described here.