Discord bot to compile and run code and fix code formatting, all without leaving discord and just a single click (reaction) away. Supports tons of languages and automatically finds runnable code in messages.
- compile and run code from discord messages
- reformat java code and fix indentation
- reminder function
- listen to GitHub repository events and posts summary on push
- show date and time from messages in local timezone
- send get requests via slash command
paste the link into a browser window and select your server for the bot to join.
https://discord.com/api/oauth2/authorize?client_id=779383631255961640&permissions=11328&scope=bot
- replace
change-me
with the jda token indocker-compose.yml
docker-compose build && docker-compose up -d
- replace
change-me
inapplication.yml
when running withspring-boot:run
or add the parametercodey.token
with your bots token to your run configuration in your IDE. - run the main method in class
CodeyApplication
or the maven taskspring-boot:run
- visit and login https://discord.com/developers/applications
- create a
New Application
, give it a name - click
Bot
and thenAdd Bot
- to reveal your token click
Click To Reveal Token
and copy that token to the places described above depending on how you run it - select
OAuth2
- check
bot
in Scopes - after checking
bot
you can select the bot permissionsSend Messages
,Add Reactions
,View Channels
andManage Messages
(or whatever it is your bot needs if you don't intend to build the one in this repo) - now click on
Copy
next to the generated link and paste it into a browser window. - select your server to let the bot join.
- if you run your bot now it shows as online in your servers memberlist.