You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
470 B
Python
15 lines
470 B
Python
from tipbot import commands
|
|
|
|
|
|
def help(update, context):
|
|
cmds = list()
|
|
for i in commands.all_commands:
|
|
pk = commands.all_commands[i]
|
|
if not pk.get('admin', False):
|
|
cmds.append('{example} - {help}'.format(
|
|
example=pk['example'],
|
|
help=pk['help']
|
|
))
|
|
update.message.from_user.send_message('Here are the available commands for this bot:\n\n' + '\n\n'.join(cmds))
|
|
update.message.delete()
|