Skip to content

Commit

Permalink
pylint errors fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
cray94 committed Oct 19, 2023
1 parent 6b4fc69 commit 45ae9f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ async def on_member_remove(member):
''' run on message edited '''
channel = get(member.guild.text_channels, name='general')
await channel.send(f"{member.name} has left")

###########################
# Function: on_message
# Description: run when a message is sent to a discord the bot occupies
Expand Down
2 changes: 1 addition & 1 deletion test/test_expansion.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from unittest.mock import AsyncMock, MagicMock

# Import the function or method that you want to test.
from event import on_member_join
from bot import on_member_join

class TestDiscordBot(unittest.IsolatedAsyncioTestCase):
async def test_on_member_join(self):
Expand Down

0 comments on commit 45ae9f5

Please sign in to comment.