This is the source code for the discord bot, "Peter Kim Jr.", which operates in the FalconX Robotics discord.
Add an environment variable called BOT_TOKEN
, which contains the bot token for the discord bot.
To run the program with the env variable on VSCode, specify this in .vscode/launch.json
{
"version": "0.2.0",
"configurations": [
{
"type": "java",
"name": "Debug (Launch) - Current File",
"request": "launch",
"mainClass": "${file}"
},
{
"type": "java",
"name": "Debug (Launch)-Bot<falkim-bot>",
"request": "launch",
"mainClass": "com.falconxrobotics.discordbot.Bot",
"projectName": "falkim-bot",
"env": {
"BOT_TOKEN": <TOKEN HERE>
}
}
]
}
mvn clean heroku:deploy
Never push the bot token onto git.