Skip to content

Commit

Permalink
Merge pull request #57 from SCAICT/development
Browse files Browse the repository at this point in the history
  • Loading branch information
Edit-Mr authored May 7, 2024
2 parents 84cebb8 + 82d7a79 commit df577bb
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions cog/comment.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,16 @@ async def on_message(self, message):
url = f"{arg[2]}"
# , details = f"{arg[1]}"
))
if message.channel.id == self.sp_channel["countChannel"]:
# 數數回應
await Comment.count(message)
elif message.channel.id == self.sp_channel["colorChannel"]:
#猜色碼回應
await Comment.niceColor(message)
if message.channel.id not in self.sp_channel["exclude_point"] and userId != self.bot.user.id:
# 列表中頻道不算發言次數 # 機器人會想給自己記錄電電點,必須排除
Comment.today_comment(userId, message, CURSOR)
if userId != self.bot.user.id: # 機器人發言不可當成觸發條件,必須排除
if message.channel.id == self.sp_channel["countChannel"]:
# 數數回應
await Comment.count(message)
elif message.channel.id == self.sp_channel["colorChannel"]:
#猜色碼回應
await Comment.niceColor(message)
if message.channel.id not in self.sp_channel["exclude_point"]:
# 平方發言加電電點,列表中頻道不算發言次數
Comment.today_comment(userId, message, CURSOR)
end(CONNECTion, CURSOR)

@staticmethod
Expand Down

0 comments on commit df577bb

Please sign in to comment.