Skip to content

Commit

Permalink
Update polls.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiaan-daniels committed Apr 19, 2024
1 parent 300be5d commit 2b01970
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cogs/polls.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
import database


class MessageCounter(commands.Cog):
def __init__(self: MessageCounter, bot: commands.Bot) -> None:
class Polls(commands.Cog):
def __init__(self: Polls, bot: commands.Bot) -> None:
self.bot = bot
self.db = database.connect()
self.cursor = self.db.cursor()

@commands.Cog.listener()
async def on_message(self: MessageCounter, message: discord.Message) -> None:
async def on_message(self: Polls, message: discord.Message) -> None:
...


def setup(bot: commands.Bot) -> None:
bot.add_cog(MessageCounter(bot))
bot.add_cog(Polls(bot))

0 comments on commit 2b01970

Please sign in to comment.