Skip to content

Commit 7f28fe1

Browse files
committed
刪除多餘的程式碼部分
1 parent e14a27c commit 7f28fe1

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

AutoRole.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,6 @@ async def on_ready():
2323
#機器人的在線狀態
2424
await bot.change_presence(status=discord.Status.online, activity=game)
2525

26-
@bot.event
27-
#當有訊息時
28-
async def on_message(message):
29-
#排除自己的訊息,避免陷入無限循環
30-
if message.author == bot.user:
31-
return
32-
#如果包含 peko,機器人回傳 好油哦
33-
if message.content == "peko":
34-
await message.channel.send("好油哦")
35-
3626
@bot.event
3727
#當有成員加入(DC群)時
3828
async def on_member_join(member):

0 commit comments

Comments
 (0)