From 55be2a35866bcee71e60a98082e2c48594db7a7e Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 4 Sep 2018 11:30:00 +0100 Subject: [PATCH] twitter.py -> tweets.py --- modules/{twitter.py => tweets.py} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename modules/{twitter.py => tweets.py} (95%) diff --git a/modules/twitter.py b/modules/tweets.py similarity index 95% rename from modules/twitter.py rename to modules/tweets.py index 6d9b3dfe..ff628b6e 100644 --- a/modules/twitter.py +++ b/modules/tweets.py @@ -13,8 +13,8 @@ REGEX_TWITTERURL = re.compile( class Module(object): def __init__(self, bot, events, exports): self.bot = bot - events.on("received").on("command").on("twitter", "tw" - ).hook(self.twitter, help="Find a tweet", + events.on("received").on("command").on("tweet", "tw" + ).hook(self.tweet, help="Find a tweet", usage="[@username/URL/ID]") def make_timestamp(self, s): @@ -23,7 +23,7 @@ class Module(object): since, unit = Utils.time_unit(seconds_since) return "%s %s ago" % (since, unit) - def twitter(self, event): + def tweet(self, event): api_key = self.bot.config["twitter-api-key"] api_secret = self.bot.config["twitter-api-secret"] access_token = self.bot.config["twitter-access-token"]