Skip to content

Commit

Permalink
MEE6レベルアップ、自動送信機能追加v4
Browse files Browse the repository at this point in the history
  • Loading branch information
Syunngiku0402 committed Nov 3, 2024
1 parent 467d62d commit 59efbff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cogs/cmee6level.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ async def on_message(self, message: discord.Message):
else:
text = ""
mee6_channel = await self.bot.fetch_channel(config.mee6.levelup) # 新たに作るmee6通知チャンネル
if message.author.roles in [config.mee6.levelupnoticeoff]: # mee6levelup無効化ロールを持っているかどうか
await mee6_channel.send(f"{text}/xp reached {username} level {level}")
else:
if message.author.roles not in [config.mee6.levelupnoticeoff]: # mee6levelup無効化ロールを持っているかどうか
await mee6_channel.send(f"{text}/xp reached <@{userid}> level {level}")
else:
await mee6_channel.send(f"{text}/xp reached {username} level {level}")


async def setup(bot: commands.Bot):
Expand Down

0 comments on commit 59efbff

Please sign in to comment.