The COL-project is an open-source Discord chatbot powered by Notebook/Python and microsoft/DialoGPT-large
.
-
Create a Discord Bot
- Visit the Discord Developer Portal.
- Select or create a new application.
- In the
SETTINGS
section, go toBot
and enable theMessage Content Intent
option. - Retrieve your Discord bot token.
-
Prepare Your Environment
- Use either Jupyter Notebook or Google Colab to run the code.
-
Set Up the Project
- Create a new
.ipynb
file (e.g.,name.ipynb
) or use the provided file. - In the first code cell, add and run the following pip command:
!pip install discord.py transformers nest_asyncio
- Open the
COL-Script.ipynb
file and switch the view frompreview
tocode
. Alternatively, copy the script fromCOL-Script.ipynb
and paste it into the next code cell in your.ipynb
file, after the!pip install
command.
- Create a new
-
Configure the Bot
- Replace the placeholder
<YOUR_DISCORD_TOKEN>
in the script with your Discord bot token.
- Replace the placeholder
-
Run the Code
- Run the first code cell to install the necessary dependencies. Once installation is complete, run the second cell to execute the main code.
Google Colab will automatically shut down your code after approximately 1.5 hours of inactivity. For long-term availability, consider using Jupyter Notebook on a continuously running computer.
In Discord, type !chat YOUR_QUESTION
to interact with the bot.
Join our Discord server to collaborate and support the project.