Skip to content

Commit

Permalink
Fix typo in ErrorHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
joinemm committed Aug 30, 2023
1 parent 1925df2 commit 65fa9a6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cogs/errorhandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class ErrorMessages:
command_on_cooldown = "You are on cooldown! Please wait `{0:.0f} seconds.`"


class ErrorHander(commands.Cog):
class ErrorHandler(commands.Cog):
"""Any errors during command invocation will propagate here"""

def __init__(self, bot):
Expand Down Expand Up @@ -290,4 +290,4 @@ async def on_command_error(


async def setup(bot):
await bot.add_cog(ErrorHander(bot))
await bot.add_cog(ErrorHandler(bot))
6 changes: 3 additions & 3 deletions cogs/roles.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import asyncio

import discord
from cogs.errorhandler import ErrorHander
from cogs.errorhandler import ErrorHandler
from discord.ext import commands
from modules.misobot import MisoBot

Expand Down Expand Up @@ -428,8 +428,8 @@ async def on_message(self, message: discord.Message):

command = message.content[0]
rolename = message.content[1:].strip()
errorhandler = self.bot.get_cog("ErrorHander")
if not isinstance(errorhandler, ErrorHander):
errorhandler = self.bot.get_cog("ErrorHandler")
if not isinstance(errorhandler, ErrorHandler):
return message.channel.send("Internal Error: Could not get ErrorHandler")

if command in ["+", "-"]:
Expand Down

0 comments on commit 65fa9a6

Please sign in to comment.