diff --git a/src/bots/discord_basin_bot.py b/src/bots/discord_basin_bot.py index bf5d839..9746f4b 100644 --- a/src/bots/discord_basin_bot.py +++ b/src/bots/discord_basin_bot.py @@ -127,17 +127,6 @@ async def on_ready(self): self.current_guilds.append(guild) logging.info(f"Guild found: {guild.id}") - # Log the commit of this run. - logging.info( - "Git commit is " - + subprocess.check_output( - ["git", "rev-parse", "--short", "HEAD"], - cwd=os.path.dirname(os.path.realpath(__file__)), - ) - .decode("ascii") - .strip() - ) - @tasks.loop(seconds=0.4, reconnect=True) async def send_queued_messages(self): """Send messages in queue. diff --git a/src/bots/discord_bot.py b/src/bots/discord_bot.py index 9f46762..4ec9de3 100644 --- a/src/bots/discord_bot.py +++ b/src/bots/discord_bot.py @@ -208,17 +208,6 @@ async def on_ready(self): self.current_guilds.append(guild) logging.info(f"Guild found: {guild.id}") - # Log the commit of this run. - logging.info( - "Git commit is " - + subprocess.check_output( - ["git", "rev-parse", "--short", "HEAD"], - cwd=os.path.dirname(os.path.realpath(__file__)), - ) - .decode("ascii") - .strip() - ) - @tasks.loop(seconds=10, reconnect=True) async def _update_naming(self): if not self.nickname: diff --git a/src/bots/twitter_bot.py b/src/bots/twitter_bot.py index 416fe9d..eaa6b61 100644 --- a/src/bots/twitter_bot.py +++ b/src/bots/twitter_bot.py @@ -59,10 +59,10 @@ def send_msg(self, msg): class BeanstalkTwitterBot(TwitterBot): def __init__(self, prod=False, dry_run=None): if prod: - self.api_key = os.environ["TWITTER_BOT_API_KEY"] - self.api_key_secret = os.environ["TWITTER_BOT_API_KEY_SECRET"] - self.access_token = os.environ["TWITTER_BOT_ACCESS_TOKEN"] - self.access_token_secret = os.environ["TWITTER_BOT_ACCESS_TOKEN_SECRET"] + self.api_key = os.environ["TWITTER_BS_BOT_API_KEY"] + self.api_key_secret = os.environ["TWITTER_BS_BOT_API_KEY_SECRET"] + self.access_token = os.environ["TWITTER_BS_BOT_ACCESS_TOKEN"] + self.access_token_secret = os.environ["TWITTER_BS_BOT_ACCESS_TOKEN_SECRET"] logging.info("BeanstalkTwitterBot configured as a production instance.") else: self.set_keys_staging() diff --git a/src/bots/util.py b/src/bots/util.py index 1c24eac..f8acc06 100644 --- a/src/bots/util.py +++ b/src/bots/util.py @@ -47,17 +47,6 @@ def set_status(self, text): self.status_text = text async def on_ready(self): - # Log the commit of this run. - logging.info( - "Git commit is " - + subprocess.check_output( - ["git", "rev-parse", "--short", "HEAD"], - cwd=os.path.dirname(os.path.realpath(__file__)), - ) - .decode("ascii") - .strip() - ) - self.user_id = self.user.id # self.beanstalk_guild = self.get_guild(BEANSTALK_GUILD_ID) # Guild IDs for all servers this bot is in.