Fix !fgoat
This commit is contained in:
parent
9216ef0c45
commit
1e2de1de9a
@ -1219,7 +1219,7 @@ def goat(cli, nick, chan, rest):
|
|||||||
|
|
||||||
ul = list(var.USERS.keys())
|
ul = list(var.USERS.keys())
|
||||||
ull = [x.lower() for x in ul]
|
ull = [x.lower() for x in ul]
|
||||||
rest = re.split(' +', rest)[0].strip().lower()
|
rest = rest.split(' ')[0].strip().lower()
|
||||||
|
|
||||||
if not rest:
|
if not rest:
|
||||||
cli.notice(nick, 'Not enough parameters.')
|
cli.notice(nick, 'Not enough parameters.')
|
||||||
@ -1254,6 +1254,7 @@ def goat(cli, nick, chan, rest):
|
|||||||
|
|
||||||
@cmd('fgoat', admin_only=True)
|
@cmd('fgoat', admin_only=True)
|
||||||
def fgoat(cli, nick, chan, rest):
|
def fgoat(cli, nick, chan, rest):
|
||||||
|
rest = rest.split(' ')[0].strip()
|
||||||
goatact = random.choice(['kicks', 'headbutts'])
|
goatact = random.choice(['kicks', 'headbutts'])
|
||||||
|
|
||||||
cli.msg(chan, '\x02{}\x02\'s goat walks by and {} \x02{}\x02.'.format(
|
cli.msg(chan, '\x02{}\x02\'s goat walks by and {} \x02{}\x02.'.format(
|
||||||
|
Loading…
Reference in New Issue
Block a user