Skip to content
This repository has been archived by the owner on Nov 24, 2019. It is now read-only.

Commit

Permalink
Fix refactoring bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
sco1 committed Oct 11, 2018
1 parent 167134e commit 30098b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bot/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def loadCredentials(credentialJSON) -> str:
# Setup event loops
client.loop.create_task(wumbopresence.randWumboTimer(client, wumboJSON='./bot/wumbolist.JSON'))
patchchecks = (
overwatch.PatchGifParser(client),
overwatch.PatchRundownParser(client),
overwatch.PatchNotesParser(client),
mhw.MHWNewsParser(client),
rocketleague.RLNewsParser(client)
Expand Down
3 changes: 1 addition & 2 deletions bot/cogs/overwatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ async def postembed(self, postobj: RedditPost = None, channelID: int = None):
* Youtube & Streamable: Use a regular message and defer to Discord's embed
"""
channelID = channelID if channelID is not None else self.postchannelID
postchannel = self.bot.get_channel(channelID)

host = postobj.contentURL.host.lower()
if "gfycat.com" in host:
Expand All @@ -72,8 +73,6 @@ async def postembed(self, postobj: RedditPost = None, channelID: int = None):
f"Invalid post type provided: '{type(postobj)}', input must be RedditPost"
)

postchannel = self.bot.get_channel(channelID)

postembed = discord.Embed(
title=postobj.title,
color=discord.Color(0x9C4AF7),
Expand Down

0 comments on commit 30098b8

Please sign in to comment.