Use it in a channel by setting an environment variable with a personal token, or use it privately in your DM
- Have a discord bot with the following Privileged Gateway Intents: PRESENCE INTENT, SERVER MEMBERS INTENT, MESSAGE CONTENT INTENT
- Have a personal access token in Github with the following permissions: notifications
git clone https://github.com/vinibgoulart/discord-bot-github-notifications
cd discord-bot-github-notifications
yarn
DISCORD_BOT_TOKEN=
DISCORD_CLIENT_ID=
DISCORD_GUILD_ID=
GITHUB_PERSONAL_ACCESS_TOKEN=
- Go to https://discord.com/developers/applications/ > OAuth2 > URL Generator
- Create a bot link with
Send Messages
andRead Messages/View Channels
permissions - Get generated URL and paste in your browser
yarn deploy
Open a new bash and start the bot
yarn start
Commands in a chanel
/notifications
: fetch all github .env account notifications/ping
: just a ping 🙂
Commands in a private
/notifications
: send your personal access token and to fetch your notifications