Skip to content

Latest commit

 

History

History
43 lines (39 loc) · 1.17 KB

README.md

File metadata and controls

43 lines (39 loc) · 1.17 KB

About

This is the source code for the discord bot, "Peter Kim Jr.", which operates in the FalconX Robotics discord.

Dependencies

Setup

Environment variable

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>
            }
        }
    ]
}

Deploy to heroku

mvn clean heroku:deploy

Warning

Never push the bot token onto git.