Skip to content

WIP. Discord bot that provides various utilities including air pollution data and New York Times articles. I am experimenting here with creating bot for my needs, so I am adding different commands for personal usage.

Notifications You must be signed in to change notification settings

reevee-codes/reevee-discord-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord Bot for general use for myself

This is old project and its still work in progess, but will be updated in near future. A Discord bot in Java that provides various utilities including air pollution data and New York Times articles.

Setup

  1. Prerequisites

    • Java 17 or higher
    • Maven
    • Discord Bot Token
    • AirVisual API Key
    • New York Times API Key
  2. Configuration Create application.properties in src/main/resources/:

    airvisual.api.key=your_airvisual_api_key
    nyt.api.key=your_nyt_api_key
  3. Getting API Keys

Running the Bot

Command Line

Run with token java -jar bot.jar -t YOUR_DISCORD_TOKEN Or use long format java -jar bot.jar --token YOUR_DISCORD_TOKEN Show help menu java -jar bot.jar -h

IDE Setup

  1. Open project in your IDE
  2. Edit Run Configuration
  3. Add Program Arguments: -t YOUR_DISCORD_TOKEN

Available Commands

  • !air - Get air pollution data for nearest city
  • !world <number> - Get most popular NYT articles (specify number of articles to display)

Building from Source

bash mvn clean package

The compiled jar will be in the target directory.

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Security Notes

  • Never commit your API keys or tokens
  • Add application.properties to .gitignore
  • If you suspect your token has been compromised, reset it immediately

BACKLOG:

- 1. Fix "!air" and do air quality response formatting:
"The tempearture in [city] is [current].[weather].[tp] c, and air humidity is [current].[weather].[hu] %, with [current].[weather].[ws] m/s of wind"
- + adding image to response to 1: load an image based on [current].[weather].[ic]
- 2. show current day and polish namedays
- 3. hosting
- 4. create in memory todolist for all users
- 5. add to in memory todolist
- 6. add icon from user
- 7. remind about duolingo at 22 CET
- -----------------------------------------------------------

About

WIP. Discord bot that provides various utilities including air pollution data and New York Times articles. I am experimenting here with creating bot for my needs, so I am adding different commands for personal usage.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages