Skip to content

Commit

Permalink
MEE6レベルアップメンション修正v1
Browse files Browse the repository at this point in the history
  • Loading branch information
Syunngiku0402 committed Dec 21, 2024
1 parent 8270b1b commit a64b11d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cogs/cmee6level.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ async def on_message(self, message: discord.Message):
text = ""
mee6_channel = await self.bot.fetch_channel(config.mee6.levelup) # 新たに作るmee6通知チャンネル
levelupnoticeoff = message.guild.get_role(config.mee6.levelupnoticeoff)
if levelupnoticeoff not in message.author.roles: # mee6levelup無効化ロールを持っているかどうか
lvupuser = await message.guild.fetch_member(userid)
if levelupnoticeoff not in lvupuser.roles:
# if levelupnoticeoff not in message.author.roles: # mee6levelup無効化ロールを持っているかどうか
await mee6_channel.send(f"{text}/xp reached <@{userid}> level {level}")
else:
await mee6_channel.send(f"{text}/xp reached {username} level {level}")
Expand Down

0 comments on commit a64b11d

Please sign in to comment.