Skip to content

Commit

Permalink
MEE6レベルアップ、自動送信機能追加v3
Browse files Browse the repository at this point in the history
  • Loading branch information
Syunngiku0402 committed Nov 3, 2024
1 parent 2dc9498 commit 467d62d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cogs/cmee6level.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ def __init__(self, bot: commands.Bot):
async def on_message(self, message: discord.Message):
if "mee6level" in message.content:
if message.channel.id in [config.mee6.botch]: # 非公開mee6-level通知チャンネル
userid = message.content.split(",")[1] # userid表示
username = message.content.split(",")[2] # user名表示
level = message.content.split(",")[3] # レベル
userid = int(message.content.split(",")[1]) # userid表示
username = str(message.content.split(",")[2]) # user名表示
level = int(message.content.split(",")[3]) # レベル
print(f"id{userid},name{username},lv{level}")
if (level % 50 == 0):
text = "# "
elif (level % 10 == 0):
Expand Down

0 comments on commit 467d62d

Please sign in to comment.