mod_config.py

Mon, 10 Nov 2014 17:40:26 +0200

author
Teemu Piippo <crimsondusk64@gmail.com>
date
Mon, 10 Nov 2014 17:40:26 +0200
changeset 80
0f6bfd359a7f
parent 73
d67cc4fbc3f1
child 124
7b2cd8b1ba86
permissions
-rw-r--r--

- .cset now looks up the appropriate skulltag/zandronum version

from modulecore import command_error
from configfile import Config
import hgapi

ModuleData = {
	'commands':
	[
		{
			'name': 'addchan',
			'description': 'Adds a channel to config',
			'args': '<channel>',
			'level': 'admin',
		},

		{
			'name': 'delchan',
			'description': 'Deletes a channel from config',
			'args': '<channel>',
			'level': 'admin',
		},
	]
}

def cmd_addchan (bot, args, **rest):
	bot.add_irc_channel (args['channel'])

def cmd_delchan (bot, args, **rest):
	bot.remove_irc_channel (args['channel'])

mercurial