Thread:T3CHNOCIDE/@comment-25801460-20160807013324/@comment-4712589-20160807101618

Hi there,

So the commands are dealt with under the chatbot.py file. If you look at the "on_message" method, you'll see all the commands. The question is who can use this command?

First you need to specify the command and who can use it:

Admins only elif message.startswith("!bot") and (username in admin_list):

Mods & admins elif message.startswith("!bot") and (username in admin_list or username in mod_list):

All users: elif message.startswith("!bot"):

Beneath that (indented) you can then code your commands. For this command I would suggest something like this:

If you add that to the bottom of the admin commands, that'll make the bot say "T3CHNOCIDE says hello!" when an admin types in "!bot>T3CHNOCIDE>hello!". Remember when making any changes you need to restart the bot (you can use "!reboot" in chat) and any admins or mods already on the chat will need to exit and re-enter, as the admin and mod lists are created as each admin/mod enters the chat. If an admin/mod doesn't reenter, it's treated as a normal user.

As for running the bot 24/7. The program has to be run on a turned on computer, whether that's a laptop, desktop, phone, RasberryPi or VPS. All of the chat bots you see on Wikia are usually being run on a VPS. However these cost money, so you'll have to evaluate if you really want one. You can get some really cheap ones which are paid yearly.