Patched argument checking and added gitignore
This commit is contained in:
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
**/__pycache__/
|
||||
**/*_tok
|
||||
5
main.py
5
main.py
@@ -27,10 +27,11 @@ async def on_message(message):
|
||||
|
||||
msg : str = message.content
|
||||
parts = msg.split()
|
||||
if len(parts) != 2:
|
||||
await message.reply('Usage:\n\t$picker <owner> <repo>')
|
||||
if len(parts) != 3:
|
||||
await message.reply('Usage:\n\t$picable <owner> <repo>')
|
||||
return
|
||||
|
||||
await message.reply('Checking ' + parts[1] + '/' + parts[2] + '...')
|
||||
await message.reply(PICable.PICable(parts[1], parts[2], github_token))
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user