mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-03-12 09:20:55 +01:00
Added @give command.
This commit is contained in:
parent
24c6eaa9df
commit
5aea60bd07
@ -38,6 +38,7 @@ from baseplugin import *
|
|||||||
|
|
||||||
import base64
|
import base64
|
||||||
|
|
||||||
|
import ircmsgs
|
||||||
import ircutils
|
import ircutils
|
||||||
import privmsgs
|
import privmsgs
|
||||||
import callbacks
|
import callbacks
|
||||||
@ -178,8 +179,15 @@ class Moobot(callbacks.Privmsg):
|
|||||||
else:
|
else:
|
||||||
irc.error(msg, 'I don\'t recognize that stack command.')
|
irc.error(msg, 'I don\'t recognize that stack command.')
|
||||||
|
|
||||||
|
def give(self, irc, msg, args):
|
||||||
|
"""<someone> <something>"""
|
||||||
|
(someone, something) = privmsgs.getArgs(args, needed=2)
|
||||||
|
if someone == 'me':
|
||||||
|
someone = msg.nick
|
||||||
|
elif someone in ('yourself', 'you', irc.nick):
|
||||||
|
someone = himself
|
||||||
|
response = 'gives %s %s' % (someone, something)
|
||||||
|
irc.queueMsg(ircmsgs.action(ircutils.reply(msg), response))
|
||||||
|
|
||||||
|
|
||||||
Class = Moobot
|
Class = Moobot
|
||||||
|
Loading…
x
Reference in New Issue
Block a user