Plugin.py Documentation

Creating a plugin

The bot class has a few variables in it you may find useful. See the code example below. * startTime - the time the bot started up. (time.time()) * plugins - an array of plugins the bot has loaded. see Creating a plugin. * commands - an array of commands the bot has loaded. see Creating a command.

1
2
3
4
5
from api import bot

bot.startTime #get the time the bot started up
bot.plugins #get the array of plugins the bot has loaded
bot.commands #get the array of commands the plugins have loaded