[fractale module] Fixed missing help
This commit is contained in:
parent
addccb437c
commit
6783079cb1
@ -60,12 +60,15 @@ class MainClass():
|
|||||||
%s```""" % '\n'.join(['......: %s' % t for t in self.fractals.keys()])
|
%s```""" % '\n'.join(['......: %s' % t for t in self.fractals.keys()])
|
||||||
|
|
||||||
async def on_message(self, message):
|
async def on_message(self, message):
|
||||||
|
async with message.channel.typing():
|
||||||
args = message.content.split(" ")
|
args = message.content.split(" ")
|
||||||
if len(args) == 1:
|
if len(args) == 1:
|
||||||
await self.modules['help'][1].send_help(message.channel, self)
|
await self.modules['help'][1].send_help(message.channel, self)
|
||||||
elif len(args) == 2:
|
elif len(args) == 2:
|
||||||
if args[1] in self.fractals.keys():
|
if args[1] in self.fractals.keys():
|
||||||
await self.send_fractal(message, args[1]+' '+' '.join(['*']*len(self.fractals[args[1]]['ParseData'])))
|
await self.send_fractal(message, args[1]+' '+' '.join(['*']*len(self.fractals[args[1]]['ParseData'])))
|
||||||
|
else:
|
||||||
|
await self.modules['help'][1].send_help(message.channel, self)
|
||||||
elif len(args) == 3:
|
elif len(args) == 3:
|
||||||
if args[1] == "info" and args[2] in self.fractals.keys():
|
if args[1] == "info" and args[2] in self.fractals.keys():
|
||||||
description = """\
|
description = """\
|
||||||
|
Loading…
Reference in New Issue
Block a user