Wired up bot and PICable

This commit is contained in:
2025-02-23 22:30:27 +00:00
parent 675704225a
commit 4a7e33029c

View File

@@ -2,6 +2,7 @@
import discord
from sys import argv
import PICable
if len(argv) != 3:
print('Usage:\n\t' + argv[0] + ' <discord_token> <github_token>')
@@ -27,10 +28,10 @@ async def on_message(message):
msg : str = message.content
parts = msg.split()
if len(parts) != 2:
await message.reply('Usage:\n\t$picker <url>')
await message.reply('Usage:\n\t$picker <owner> <repo>')
return
await message.reply('I\'m lost :shrug:')
await message.reply(PICable.PICable(parts[1], parts[2], github_token))
return