We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 128c8af commit 0f3fa6bCopy full SHA for 0f3fa6b
src/__init__.py
@@ -16,7 +16,7 @@ async def on_ready():
16
print(f'Client [{client.user}] UP')
17
18
@client.event
19
-async def on_message(message: str):
+async def on_message(message):
20
# Allow text to invoke comamnds
21
await client.process_commands(message)
22
@@ -33,6 +33,9 @@ async def load_cogs():
33
34
# Main runner
35
async def main():
36
+ if not Config.BOT_TOKEN:
37
+ raise Exception('No bot token')
38
+
39
async with client:
40
await load_cogs()
41
await client.start(Config.BOT_TOKEN)
0 commit comments