Added #invite
This commit is contained in:
parent
f81cf2d2bd
commit
2164b51725
1 changed files with 9 additions and 1 deletions
10
botcmd.py
10
botcmd.py
|
@ -161,6 +161,12 @@ def parse((line,irc)):
|
||||||
trustedlock.acquire()
|
trustedlock.acquire()
|
||||||
irc.send('PRIVMSG %s :%s'%(nick,', '.join(trusted)))
|
irc.send('PRIVMSG %s :%s'%(nick,', '.join(trusted)))
|
||||||
trustedlock.release()
|
trustedlock.release()
|
||||||
|
elif line[3]==':#invite':
|
||||||
|
if len(line)==5:
|
||||||
|
addauthcmd(nick, 'INVITE %s %s'%(line[4], chan))
|
||||||
|
irc.send('PRIVMSG NickServ :ACC '+nick)
|
||||||
|
else:
|
||||||
|
irc.send('PRIVMSG %s :Usage #invite nick'%chan)
|
||||||
elif line[3]==':#help':
|
elif line[3]==':#help':
|
||||||
irc.send('PRIVMSG %s :%s'%(chan,help(' '.join(line[4:]))))
|
irc.send('PRIVMSG %s :%s'%(chan,help(' '.join(line[4:]))))
|
||||||
elif line[3]==':#esoteric' and chan=='#esoteric':
|
elif line[3]==':#esoteric' and chan=='#esoteric':
|
||||||
|
@ -231,7 +237,7 @@ def execcmd(cmdline):
|
||||||
|
|
||||||
def help(cmd):
|
def help(cmd):
|
||||||
if cmd=='':
|
if cmd=='':
|
||||||
return '#echo #op #deop #voice #devoice #kick #src #msg #trusted? #trust #untrust #ls-trusted #help'
|
return '#echo #op #deop #voice #devoice #kick #src #msg #trusted? #trust #untrust #ls-trusted #invite #help'
|
||||||
elif cmd=='#echo':
|
elif cmd=='#echo':
|
||||||
return '#echo text echo text back'
|
return '#echo text echo text back'
|
||||||
elif cmd=='#op':
|
elif cmd=='#op':
|
||||||
|
@ -256,6 +262,8 @@ def help(cmd):
|
||||||
return '#untrust nick remove nick from trusted list'
|
return '#untrust nick remove nick from trusted list'
|
||||||
elif cmd=='#ls-trusted':
|
elif cmd=='#ls-trusted':
|
||||||
return '#ls-trusted list nicks that are trusted. use only in a query'
|
return '#ls-trusted list nicks that are trusted. use only in a query'
|
||||||
|
elif cmd=='#invite':
|
||||||
|
return '#invite nick invites nick to channel'
|
||||||
elif cmd=='#help':
|
elif cmd=='#help':
|
||||||
return '#help [command] give short info of command or list commands'
|
return '#help [command] give short info of command or list commands'
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue