Skip to content

Creating Mods

Raul-Sorin Sorban edited this page Jun 15, 2019 · 2 revisions

The first step at creating Bots fast and easy (as promised), is to quickly understand and follow the Wiki docs for PTGen.exe, which generates a whole quick-start project for you.

After the Mod project is generated, you can override certain properties and functions. But firstly, you'll have to set up the informations attribute accordingly.

[Informations ( Name = "botname", ID = "botid", Description = "botdescription", Version = "0.1.0" )]

Overrides

Most important overrides are user-friendliness related. Such as the Initialize, Uninitialize, Save (quiet), Load (quiet), (etc.) overrides.

  • override Contact Contact: Contact information when someone calls the "<mod_id>mod.info" command, which contains the developer user discord ID, contact user ID (most likely the same) and an contact Email.
  • override string Help: It's a text filled (limited to 2000 characters - according to Discord's policy) with information about the bot, it's functionality or your pornhub account link. Used to help people.

In the runtime, Megabot generates commands for each mod (such as "<mod_id>mod.info" and "<mod_id>mod.enabled") which are cool I think. The other overrides are functions, but most of them are self explanatory. Be sure to execute the base method when overriding too (to avoid issues).

This page will eventually be updated in the future. There's just a lot of features (like discord callbacks, server, complex logging). It's all there, so when you create a mod or a bot, you'll find all usable methods. They have been carefully written, so private/internal methods don't show up, so it's not a mess to look through by yourself.

I'm very Issue friendly and I am absolutely sure there are bugs/exploits, so do not input any sort of minor thing that's been bugging you out.

Clone this wiki locally