- Install Node.js (if you have a package manager, use that instead to install this)
- Install Ollama (ditto)
- Pull (download) a model, e.g
ollama pull orcaorollama pull llama2 - Start Ollama by running
ollama serve - Create a Discord bot
- Under Application » Bot
- Enable Message Content Intent
- Enable Server Members Intent (for replacing user mentions with the username)
- Under Application » Bot
- Invite the bot to a server
- Go to Application » OAuth2 » URL Generator
- Enable
bot - Enable Send Messages, Read Messages/View Channels, and Read Message History
- Under Generated URL, click Copy and paste the URL in your browser
- Rename
.env.exampleto.envand edit the file- You can get the token from Application » Bot » Token, never share this with anyone
- Make sure to change the model if you aren't using
orca - Ollama IP can be kept the same unless you have changed the port
- Set the channels to the channel ID, comma separated
- In Discord, go to User Settings » Advanced, and enable Developer Mode
- Right click on a channel you want to use, and click Copy Channel ID
- Start the bot with
npm start
wighawag-bookmarks/discord-ai-bot
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|