Skip to content

Commit

Permalink
Added AI Chatbot (TEST)
Browse files Browse the repository at this point in the history
  • Loading branch information
elouangrimm authored Oct 28, 2024
1 parent 60ca96d commit 02c6ce1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import os
import random
import datetime
from chatterbot import ChatBot

# Made By Elouan Grimm

Expand All @@ -13,6 +14,7 @@

# BOT VARIABLES:
server_id = 1284250086003708025
chatbot = ChatBot("Tidy Tab Groups")
username = "Tidy Tab Groups"
pfp_path = "pfp.png"
rich_presence = "Tab Organization"
Expand Down Expand Up @@ -71,11 +73,11 @@ async def send_daily_tip():

# ☲☲☲☲ COMMANDS ☲☲☲☲

# Response to a Ping
# Response to a Ping with AI
@bot.event
async def on_message(message):
if bot.user.mentioned_in(message):
response = random.choice(ping_responses)
response = chatbot.get_response(message)
await message.reply(response)

await bot.process_commands(message)
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@

discord.py
chatterbot

0 comments on commit 02c6ce1

Please sign in to comment.