Skip to content

Bunni discord bot that displays bribe info for the current epoch and optionally displays the gov token market price.

Notifications You must be signed in to change notification settings

hmmdeif/lit-discord-bot

Repository files navigation

Bunni LIT Discord bot

Tested on nodejs 18.x (uses native fetch api)

Obtains onchain bribe data and displays it in a loop as activity status. Optionally can display LIT price as name.

Dev

npm run dev

Run

Copy and paste .env.sample and rename to .env. Fill in discord token and rpc variables.

npm run build npm start

N.B. Bot restarts every hour at minute 0 in case of network connectivity issues

Create Discord Application

https://discord.com/developers/applications

New Application -> Set name Sidebar -> Bot -> Reset Token -> Copy token -> Paste into .env Sidebar -> General Information -> Copy Application Id

Replace YOUR_APPLICATION_ID in the following link with the actual Application Id you just copied.

https://discord.com/api/oauth2/authorize?client_id=YOUR_APPLICATION_ID&permissions=0&scope=bot

Paste the url into a browser and authorise the bot to join the server.

About

Bunni discord bot that displays bribe info for the current epoch and optionally displays the gov token market price.

Resources

Stars

Watchers

Forks