2020-04-07 01:15:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
async def helpParse(self, c, n, m):
|
|
|
|
if m in self.help:
|
|
|
|
self.more[c] = self.help[m][1]
|
|
|
|
await self.message(c, self.help[m][0])
|
|
|
|
else:
|
|
|
|
await self.message(c, 'my main commands are: {}'.format(' '.join([i for i in self.help if not ' ' in i])))
|
|
|
|
|
|
|
|
|
|
|
|
async def more(self, c, n, m):
|
|
|
|
if c in self.more:
|
|
|
|
await self.message(c, self.more.pop(c))
|
|
|
|
return
|
|
|
|
else:
|
|
|
|
await self.message(c, 'what more could you want?')
|
|
|
|
|
|
|
|
|
|
|
|
async def init(self):
|
|
|
|
self.cmd['help'] = helpParse
|
|
|
|
self.cmd['more'] = more
|
|
|
|
|
|
|
|
self.help['help'] = ['help command - list commands or show info about one', 'i hope this was helpful']
|
|
|
|
self.help['help command'] = ['help <command> - show more info about a command (more)', 'there is even a more, for a even more in depth look!']
|
2020-04-07 01:32:57 +00:00
|
|
|
self.help['more'] = ['more - see more stuff when there is (more)', 'good job you did it lol']
|
2020-04-07 01:15:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
self.more={}
|
|
|
|
|