A Discord chatbot powered by the classic ALICE AIML brain (v1.9).
-
Install dependencies:
pip install -r requirements.txt
-
Create a Discord bot:
- Go to the Discord Developer Portal
- Create a new application and add a bot
- Enable the Message Content privileged intent
- Copy the bot token
-
Run the bot:
export DISCORD_BOT_TOKEN="your-token-here" python bot.py
-
Invite the bot to your server using an OAuth2 URL with the
botscope andSend Messages/Read Message Historypermissions.
- DMs: Send a direct message to the bot
- Mentions:
@Alice hello there - Name prefix:
Alice, what is your name?
Each user gets their own conversation session, so Alice remembers context per person.
The aiml/ directory contains the Foundation ALICE AIML set v1.9 from the
aiml-en-us-foundation-alice project.