aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen
diff options
context:
space:
mode:
Diffstat (limited to 'bot/exts/evergreen')
-rw-r--r--bot/exts/evergreen/magic_8ball.py6
-rw-r--r--bot/exts/evergreen/minesweeper.py4
-rw-r--r--bot/exts/evergreen/tic_tac_toe.py4
-rw-r--r--bot/exts/evergreen/wonder_twins.py4
4 files changed, 9 insertions, 9 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())