For basic bot information, visit Gerard's Home Page.
Community contributions to Gerard's code are welcome. Gerard runs in Node with Mongo DB and is built on the Augur Bot Framework.
NOTE: Gerard is currently not under active development. If you wish to contribute, join the VLS Bot Support Discord Server.
Routers for the settings website are not included in this repository.
Save your command.js
file in the ./commands
directory.
The file begins with:
const Augur = require("augurbot");
const Module = new Augur.Module();
And finish the file with:
module.exports = Module;
In between, you can add one or more commands and event handlers, as well as a clockwork and unload function.
Module.addCommand({
name: "commandname", // required
aliases: [], // optional
syntax: "", // optional
description: "", // recommended
info: "", // recommended
hidden: false, // optional
category: "General", // optional
permissions: (msg) => true, // optional
process: (msg, suffix) => {} // required
});
Module.addEvent("eventName", (...args) => {});
Module.addClockwork((bot) => { return setInterval(); });
Module.setUnload((bot) => {});