Skip to content

Commit ebc8712

Browse files
AmbratolmAmbratolm
authored andcommitted
Farm: Bot now allowed to gain XP too.
1 parent e87aa9d commit ebc8712

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bot/cogs/game_cogs/farm_cog.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,9 @@ async def on_member_remove(self, member: Member):
136136
# ----------------------------------------------------------------------------------------------------
137137
@Cog.listener()
138138
async def on_message(self, message: Message):
139-
# Ignore DM & bot messages
139+
# Ignore DM
140140
member = message.author
141-
if not message.guild or not isinstance(member, Member) or member.bot:
141+
if not message.guild or not isinstance(member, Member):
142142
return
143143

144144
# Get or create actor
@@ -163,7 +163,7 @@ async def on_message(self, message: Message):
163163
log_channel = (
164164
message.guild.get_channel(log_room.channel_id) if log_room else None
165165
)
166-
if log_channel and isinstance(log_channel, TextChannel):
166+
if not member.bot and log_channel and isinstance(log_channel, TextChannel):
167167
# embed = EmbedX.info(
168168
# emoji="",
169169
# title="",

0 commit comments

Comments
 (0)