Skip to content

FTC-Discord-Bot/FTC-Helper-Bot

Repository files navigation

Logo

FTC Helper Bot

GitHub Actions Status

Discord Invite

A Java discord bot created for FTC servers, made by team 8872

Note: This bot is still in development and may go down sometimes for updates or maintenance

Contributions are welcome!

⚡ Integrations

  • FTC API
  • FTC Scout
  • GitHub
  • Google Maps
  • Nasa
  • GitBook (Documentation)
  • Open Meteo (Weather)

📚 Useful Commands

  • /help - Shows a list of commands
  • /team-info - Shows information about a team based on number
  • /match-results - Shows the results of a match during an event
  • /events - Shows a list of events for a team

💻 Setup for bot development

  • Clone the repository
  • Create a file called Config.json in the path src/main/java/com/bot/Config.JSON
  • Add the following to the file:
{
  "MAIN_COLOR": [59, 127, 255],
  "ERROR_COLOR": [255, 0, 0],
  "BOT_NAME": "FTC Helper Bot",
  "DISCORD_TOKEN": "INSERT_HERE",
  "GITBOOK_TOKEN": "INSERT_HERE",
  "LEARN_SOFTWARE_SPACE_ID": "0Atm0LAmF7JLCQSIr8d4",
  "FTC_USERNAME": "INSERT_HERE",
  "FTC_PASSWORD": "INSERT_HERE",
  "NASA_API_KEY": "INSERT_HERE",
  "GOOGLE_MAPS_TOKEN": "INSERT_HERE",
  "INLINE": false,
  "DEFAULT_SEASON": 2023,
  "COMMAND_DELAY": 10
}

To get a discord token, go to the Discord Developer Portal and create a new application. Then, go to the bot tab and create a bot. You can then copy the token and paste it into the Config.json file. Also do not forget to enable all the Privileged Gateway Intents

Register for the FTC API FTC Events API

To get a NASA API key, go to the NASA API Portal and create a new application. You can then copy the token and paste it into the Config.json file

If you need to test the AI command, you can get a GitBook token by going to the GitBook Developer Portal

To get a Google Maps token, go to the Google Maps Developer Portal and create a new application. You can then copy the token and paste it into the Config.json file

It is not required to run with a Google Maps token as it only uses the google maps api if the normal geocoding fails

About

A Java discord bot created for FTC servers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages