From 09a7758e0c56dfbf631dbee9acf8bdc14a5cd5cd Mon Sep 17 00:00:00 2001 From: Anson Date: Thu, 11 Jul 2019 21:23:37 -0700 Subject: [PATCH] filenames cant be the same as an import --- discord/{discord.py => discordBot.py} | 0 telegram/{telegram.py => telegramBot.py} | 3 +-- 2 files changed, 1 insertion(+), 2 deletions(-) rename discord/{discord.py => discordBot.py} (100%) rename telegram/{telegram.py => telegramBot.py} (83%) diff --git a/discord/discord.py b/discord/discordBot.py similarity index 100% rename from discord/discord.py rename to discord/discordBot.py diff --git a/telegram/telegram.py b/telegram/telegramBot.py similarity index 83% rename from telegram/telegram.py rename to telegram/telegramBot.py index 9c2b884..8001d14 100644 --- a/telegram/telegram.py +++ b/telegram/telegramBot.py @@ -1,4 +1,3 @@ -import telegram from telegram.ext import Updater, CommandHandler @@ -6,7 +5,7 @@ def hello(bot, update): update.message.reply_text("Hello {}".format(update.message.from_user.first_name)) -updater = Updater("YOUR TOKEN HERE") +updater = Updater("TOKEN") updater.dispatcher.add_handler(CommandHandler("hello", hello))