🌴 TL;DR long Discord messages with PaLM
- Go to the Discord Developer Portal.
- Click New Application.
- Give your application a name and click Create.
- Click the Bot tab.
- Click Add Bot.
- Click Yes, I understand.
You will need the following information:
- Public key
- This can be found in General Information.
- Client ID
- This can be found in OAuth2 under Client Information.
- Token
- This can be found in Bot under Token.
- Note: This is a secret and should not be shared.
Note: You will need access to the PaLM API to generate an API key. You can request access here.
- Create a PaLM API key here.
- Copy the .env.example file to
.env
and fill in the values.
You will need to use two terminal windows; one for the bot and one for Ngrok.
Note: You will need to have Ngrok installed and in your path.
Terminal 1:
deno task start
Terminal 2:
deno task ngrok
In Terminal 2, copy the URL that is generated under Forwarding.
- The URL should look similar to this:
https://ab01-23-456-78-910.ngrok-free.app
Set this new URL as the Interactions Endpoint URL in the General tab of your Discord application. Find your application here.
The bot should now be running and ready to use! 🚀
Maintained with 🌴 by @acmcsufoss