You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
331 B
8 lines
331 B
import brathuhn, random
|
|
|
|
def choose(msg,args):
|
|
if len(args)==1:
|
|
brathuhn.sendMsg(brathuhn.ROOM,"Usage: "+args[0]+" item_1 item_2 ... item_n",'groupchat')
|
|
else:
|
|
brathuhn.sendMsg(brathuhn.ROOM,args[1+random.randint(0,len(args[1:])-1)],'groupchat')
|
|
brathuhn.addCommand("choose","Usage: !choose item_1 item_2 ... item_n",choose)
|
|
|