aboutsummaryrefslogtreecommitdiff
path: root/examples/reply.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/reply.py')
-rw-r--r--examples/reply.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/reply.py b/examples/reply.py
index f3f56c72..0697704d 100644
--- a/examples/reply.py
+++ b/examples/reply.py
@@ -3,6 +3,10 @@ import discord
client = discord.Client()
client.login('email', 'password')
+if not client.is_logged_in:
+ print('Logging in to Discord failed')
+ exit(1)
+
@client.event
def on_message(message):
if message.content.startswith('!hello'):