diff options
Diffstat (limited to 'bot/exts')
| -rw-r--r-- | bot/exts/evergreen/magic_8ball.py | 6 | ||||
| -rw-r--r-- | bot/exts/evergreen/minesweeper.py | 4 | ||||
| -rw-r--r-- | bot/exts/evergreen/tic_tac_toe.py | 4 | ||||
| -rw-r--r-- | bot/exts/evergreen/wonder_twins.py | 4 | ||||
| -rw-r--r-- | bot/exts/halloween/hacktoberstats.py | 6 | 
5 files changed, 12 insertions, 12 deletions
diff --git a/bot/exts/evergreen/magic_8ball.py b/bot/exts/evergreen/magic_8ball.py index 708aa6d2..7c9b929d 100644 --- a/bot/exts/evergreen/magic_8ball.py +++ b/bot/exts/evergreen/magic_8ball.py @@ -13,7 +13,7 @@ log = logging.getLogger(__name__)  class Magic8ball(commands.Cog):      """A Magic 8ball command to respond to a user's question.""" -    def __init__(self, _bot: Bot): +    def __init__(self):          with open(Path("bot/resources/evergreen/magic8ball.json"), "r", encoding="utf8") as file:              self.answers = json.load(file) @@ -28,5 +28,5 @@ class Magic8ball(commands.Cog):  def setup(bot: Bot) -> None: -    """Load the Magic8Ball cog.""" -    bot.add_cog(Magic8ball(bot)) +    """Load the Magic8Ball Cog.""" +    bot.add_cog(Magic8ball()) diff --git a/bot/exts/evergreen/minesweeper.py b/bot/exts/evergreen/minesweeper.py index f2c5e656..bd28d365 100644 --- a/bot/exts/evergreen/minesweeper.py +++ b/bot/exts/evergreen/minesweeper.py @@ -79,7 +79,7 @@ GamesDict = typing.Dict[int, Game]  class Minesweeper(commands.Cog):      """Play a game of Minesweeper.""" -    def __init__(self, _bot: Bot) -> None: +    def __init__(self) -> None:          self.games: GamesDict = {}  # Store the currently running games      @commands.group(name="minesweeper", aliases=("ms",), invoke_without_command=True) @@ -295,4 +295,4 @@ class Minesweeper(commands.Cog):  def setup(bot: Bot) -> None:      """Load the Minesweeper cog.""" -    bot.add_cog(Minesweeper(bot)) +    bot.add_cog(Minesweeper()) diff --git a/bot/exts/evergreen/tic_tac_toe.py b/bot/exts/evergreen/tic_tac_toe.py index 7b387c0a..bd5e0102 100644 --- a/bot/exts/evergreen/tic_tac_toe.py +++ b/bot/exts/evergreen/tic_tac_toe.py @@ -246,7 +246,7 @@ def is_requester_free() -> t.Callable:  class TicTacToe(Cog):      """TicTacToe cog contains tic-tac-toe game commands.""" -    def __init__(self, _bot: Bot): +    def __init__(self):          self.games: t.List[Game] = []      @guild_only() @@ -323,4 +323,4 @@ class TicTacToe(Cog):  def setup(bot: Bot) -> None:      """Load the TicTacToe cog.""" -    bot.add_cog(TicTacToe(bot)) +    bot.add_cog(TicTacToe()) diff --git a/bot/exts/evergreen/wonder_twins.py b/bot/exts/evergreen/wonder_twins.py index 9fa2d7f8..437d69f1 100644 --- a/bot/exts/evergreen/wonder_twins.py +++ b/bot/exts/evergreen/wonder_twins.py @@ -10,7 +10,7 @@ from bot.bot import Bot  class WonderTwins(Cog):      """Cog for a Wonder Twins inspired command.""" -    def __init__(self, _bot: Bot): +    def __init__(self):          with open(Path.cwd() / "bot" / "resources" / "evergreen" / "wonder_twins.yaml", "r", encoding="utf-8") as f:              info = yaml.load(f, Loader=yaml.FullLoader)              self.water_types = info["water_types"] @@ -46,4 +46,4 @@ class WonderTwins(Cog):  def setup(bot: Bot) -> None:      """Load the WonderTwins cog.""" -    bot.add_cog(WonderTwins(bot)) +    bot.add_cog(WonderTwins()) diff --git a/bot/exts/halloween/hacktoberstats.py b/bot/exts/halloween/hacktoberstats.py index 25da9ad5..33e9ca31 100644 --- a/bot/exts/halloween/hacktoberstats.py +++ b/bot/exts/halloween/hacktoberstats.py @@ -10,7 +10,7 @@ from async_rediscache import RedisCache  from discord.ext import commands  from bot.bot import Bot -from bot.constants import Channels, Month, NEGATIVE_REPLIES, Tokens, WHITELISTED_CHANNELS +from bot.constants import Channels, Colours, Month, NEGATIVE_REPLIES, Tokens, WHITELISTED_CHANNELS  from bot.utils.decorators import in_month, whitelist_override  log = logging.getLogger(__name__) @@ -157,7 +157,7 @@ class HacktoberStats(commands.Cog):          stats_embed = discord.Embed(              title=f"{github_username}'s Hacktoberfest", -            color=0x9c4af7, +            color=Colours.purple,              description=(                  f"{github_username} has made {n} valid "                  f"{self._contributionator(n)} in " @@ -227,7 +227,7 @@ class HacktoberStats(commands.Cog):              f"+created:{date_range}"              f"&per_page={per_page}"          ) -        log.logProcesses.debug(f"GitHub query URL generated: {query_url}") +        log.debug(f"GitHub query URL generated: {query_url}")          jsonresp = await self._fetch_url(query_url, REQUEST_HEADERS)          if "message" in jsonresp:  |