|
|
|
|
@ -74,11 +74,11 @@ def search_wiki(code,term): |
|
|
|
|
return results |
|
|
|
|
|
|
|
|
|
def quote(msg,args): |
|
|
|
|
if len(args)!=2: |
|
|
|
|
if len(args)!=2 or len(args)!=3: |
|
|
|
|
brathuhn.sendMsg(brathuhn.ROOM,"Usage: "+args[0]+" language (two letter code) [topic]",'groupchat') |
|
|
|
|
else: |
|
|
|
|
try: |
|
|
|
|
if args==2: |
|
|
|
|
if len(args)==2: |
|
|
|
|
brathuhn.sendMsg(brathuhn.ROOM,'fetching random page...','groupchat') |
|
|
|
|
url = "http://"+args[1][0:2]+".wikiquote.org/wiki/Special:Random" |
|
|
|
|
else: |
|
|
|
|
|