Skip to content

SamuraJey/java-bot

Repository files navigation

Cool Events BOT aka java-bot


Study project for OOP Course in UrFU

Cool Events BOT is a telegram-based bot powered by Java.

Features

  • Echo mode: The bot works in echo mode when the command /echo is sent. It will simply echo back any text sent by the user.
  • Events mode: When the command /events is sent, the bot will ask a series of questions. It then uses the KudaGo API to fetch upcoming events based on user input. The bot will provide details for suitable events.

Tech

Cool Events BOT uses a number of projects:

How to use

  1. Get your telegram API token from botfather
  2. Clone repo
  3. Add "Secret.java" class at root of package
    package your.package;
    
    class Secret {
        protected static String getApiKey() {
            return "YOUR_API_TOKEN";
        }
        protected static String getBotName() {
            return "YOUR_BOT_NAME";
        }
       public static String getWeatherApiKey() {
        return "YOUR_OWM_TOKEN";
        }
    }
  4. Run Main

Authors

  • Alexandr Gorshkov
  • Sergey Zaremba