mirror of
https://github.com/runyanjake/discord.git
synced 2025-10-04 23:27:29 -07:00
Update message_handler
This commit is contained in:
parent
49508a5d1c
commit
d7b1a0288f
@ -5,7 +5,7 @@ Simple Discord bot that does some useful things.
|
||||
### Running
|
||||
Build and run the docker container with a few commands:
|
||||
|
||||
`docker stop pwsBot && docker system prune && docker-compose build && docker-compose up -d && docker logs -f pwsBot`
|
||||
`docker-compose down && docker system prune -af && docker-compose build && docker-compose up -d && docker logs -f pwsBot`
|
||||
|
||||
### Functions
|
||||
|
||||
|
@ -43,8 +43,7 @@ async def handle_message(client, message):
|
||||
await message.author.send('Did not specify argument(s) for command: `' + message.content + '`. Check list of commands (`/pws help`) for valid usage.')
|
||||
else:
|
||||
await echo(message, args)
|
||||
case 'help':
|
||||
case 'commands':
|
||||
case 'help' | 'commands':
|
||||
if args:
|
||||
logging.warn('Command ' + command + ' got unexpected arguments: ' + message.content + '.')
|
||||
await message.author.send('Unexpected arguments for command: `' + message.content + '`. Check list of commands (`/pws help`) for valid usage.')
|
||||
|
Loading…
x
Reference in New Issue
Block a user