From 934ed55e3e851edf3b238c0b820c8346c559ffb0 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Wed, 29 Mar 2017 11:23:20 +0200 Subject: [PATCH] Renamed royaldiscord.py --- royaldiscord.py => extradiscord.py | 0 royalbot.py | 6 +++--- 2 files changed, 3 insertions(+), 3 deletions(-) rename royaldiscord.py => extradiscord.py (100%) diff --git a/royaldiscord.py b/extradiscord.py similarity index 100% rename from royaldiscord.py rename to extradiscord.py diff --git a/royalbot.py b/royalbot.py index e1356553..8a687a9c 100644 --- a/royalbot.py +++ b/royalbot.py @@ -4,7 +4,7 @@ import json import random import aiohttp import async_timeout -import royaldiscord +import extradiscord import markovify import database import royalbotconfig @@ -12,7 +12,7 @@ import telegram loop = asyncio.get_event_loop() b = telegram.Bot(royalbotconfig.telegram_token) -d = royaldiscord.ExtraClient(royalbotconfig.discord_token) +d = extradiscord.ExtraClient(royalbotconfig.discord_token) def currently_logged_in(thing): @@ -23,7 +23,7 @@ def currently_logged_in(thing): if isinstance(thing, telegram.Update): user = session.query(database.User).filter_by(telegram_id=thing.message.sent_from.user_id).first() # Check if thing is a Discord message - elif isinstance(thing, royaldiscord.discord.Message): + elif isinstance(thing, extradiscord.discord.Message): user = session.query(database.User).filter_by(discord_id=thing.author.id).first() # I don't know what thing is. else: