tg-bot/tipbot/commands/__init__.py

52 lines
1.4 KiB
Python
Raw Normal View History

2020-08-06 05:52:13 +00:00
from tipbot.commands.help import help
from tipbot.commands.debug import debug
from tipbot.commands.register import register
from tipbot.commands.tip import tip
from tipbot.commands.withdraw import withdraw
from tipbot.commands.balance import balance
from tipbot.commands.deposit import deposit
2020-08-07 15:01:13 +00:00
from tipbot.commands.qr import qr
2020-08-06 05:52:13 +00:00
all_commands = {
'register': {
'func': register,
'example': '/register',
'help': 'Register your Telegram user ID to this bot to begin sending and receiving tips',
},
'tip': {
'func': tip,
'example': '/tip <username> <amount> <message>',
'help': 'Tip a user in Wownero'
},
'withdraw': {
'func': withdraw,
'example': '/withdraw <address> <amount>',
2020-08-06 06:02:37 +00:00
'help': 'Withdraw Wownero to a specified Wownero address'
2020-08-06 05:52:13 +00:00
},
'balance': {
'func': balance,
'example': '/balance',
'help': 'Show your current balance'
},
'deposit': {
'func': deposit,
'example': '/deposit',
'help': 'Show your Wownero wallet address for transferring funds to'
},
'help': {
'func': help,
'example': '/help',
'help': 'Show available commands for the bot',
},
2020-08-07 15:01:13 +00:00
'qr': {
'func': qr,
'example': '/qr <address>',
'help': 'Provides a helpful URL for generating QR code for a Wownero address'
},
2020-08-06 05:52:13 +00:00
'debug': {
'func': debug,
'admin': True
}
}