Cool Events BOT is a telegram-based bot powered by Java.
- 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.
Cool Events BOT uses a number of projects:
- Java - Awesome programming language.
- Apache Maven - For building project.
- TelegramBots - Java based API for telegram bots.
- KudaGo API - API from event aggregator KudaGo.
- slf4j logger - Simple logging facade for java.
- OpenWeatherMap - Where we get data about weather.
- Get your telegram API token from botfather
- Clone repo
- 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"; } }
- Run Main
- Alexandr Gorshkov
- Sergey Zaremba