Skip to content

Commit

Permalink
Update discordbot.py
Browse files Browse the repository at this point in the history
  • Loading branch information
AzelT3T authored Jul 2, 2023
1 parent aa61a5c commit 25b8814
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions discordbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ async def on_command_error(ctx, error):
async def on_message(message):
if message.author == bot.user:
return
if bot.user.id in [member.id for member in message.mentions]:
user_message = message.content.split('>')[1].lstrip()
if message.channel.name == '質問':
user_message = message.content
response = check_with_openai(user_message)
if response is None:
response = "該当するfaqが見つかりません。"
Expand Down

0 comments on commit 25b8814

Please sign in to comment.