Skip to content
This repository has been archived by the owner on Apr 29, 2023. It is now read-only.

Commit

Permalink
修正log紀錄器
Browse files Browse the repository at this point in the history
  • Loading branch information
Alllen95Wei committed Dec 20, 2021
1 parent 1e160d9 commit ab7057d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@
async def on_ready():
music = discord.Activity(type=discord.ActivityType.listening, name="YOASOBI is soooooo great")
await client.change_presence(status=discord.Status.idle, activity=music)
log_writter.write_log("-------------------------------------------------------------\n登入成功!\n目前登入身份:" +
str(client.user) + "\n以下為使用紀錄(只要開頭訊息有\"a!\",則這則訊息和系統回應皆會被記錄):\n", True)
log_writter.write_log("-------------------------------------------------------------\n", True)
log_writter.write_log("登入成功!\n目前登入身份:" +
str(client.user) + "\n以下為使用紀錄(只要開頭訊息有\"a!\",則這則訊息和系統回應皆會被記錄):\n")
vc = client.get_channel(888707777659289660)
await vc.connect()

Expand Down
1 change: 1 addition & 0 deletions 執行Allen Bot.bat
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
cd %USERPROFILE%/PycharmProjects/Discord Bot(fix)
py "main.py"

0 comments on commit ab7057d

Please sign in to comment.