diff --git a/examples/deleted.py b/examples/deleted.py index 3bd38ec31..7f77e9c38 100644 --- a/examples/deleted.py +++ b/examples/deleted.py @@ -1,16 +1,8 @@ import discord -import logging - -# Set up the logging module to output diagnostic to the console. -logging.basicConfig() 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_ready(): print('Connected!') diff --git a/examples/echo.py b/examples/echo.py index 219085330..ce5eef901 100644 --- a/examples/echo.py +++ b/examples/echo.py @@ -1,16 +1,8 @@ import discord -import logging - -# Set up the logging module to output diagnostic to the console. -logging.basicConfig() 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_ready(): print('Connected!') diff --git a/examples/edits.py b/examples/edits.py index 3bf375dcd..e8233bbb0 100644 --- a/examples/edits.py +++ b/examples/edits.py @@ -1,17 +1,9 @@ import discord import time -import logging - -# Set up the logging module to output diagnostic to the console. -logging.basicConfig() 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_ready(): print('Connected!') diff --git a/examples/reply.py b/examples/reply.py index e23db9622..f3f56c72c 100644 --- a/examples/reply.py +++ b/examples/reply.py @@ -1,16 +1,8 @@ import discord -import logging - -# Set up the logging module to output diagnostic to the console. -logging.basicConfig() 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'):