Coder Social home page Coder Social logo

chowbot's Introduction

CollegeBot

CollegeBot is a Python script that sends reminders for college lab classes via Telegram. It uses the python-telegram-bot library to interact with the Telegram Bot API.

Prerequisites

  • Python 3.8 or later
  • python-telegram-bot library
  • A Telegram bot token and chat ID

Setup

  1. Clone the repository
  2. Install the required dependencies by running pip install -r requirements.txt
  3. Set the environment variables BOT_TOKEN and CHAT_ID to your Telegram bot token and chat ID, respectively. You can do this by running export BOT_TOKEN=<your_bot_token> and export CHAT_ID=<your_chat_id>
  4. Run the script using python CollegeBot.py

Running the bot automatically

You can also run the bot automatically using GitHub Actions. To do this, follow these steps:

  1. Fork the repository
  2. Go to the repository settings and click on "Secrets"
  3. Add the following secrets:
    • BOT_TOKEN: Your Telegram bot token
    • CHAT_ID: Your Telegram chat ID
  4. Go to the .github/workflows/main.yml file and modify the cron schedule to run the job at the desired time. For example, to run the job every weekday at 8am Nepal time, use the following schedule:
schedule:
- cron: '0 2 * * 1-5'
  1. Commit and push your changes. The bot will now run automatically at the specified time.

License

This project is licensed under the MIT License - see the LICENSE file for details.

chowbot's People

Contributors

chandanshakya avatar

Watchers

Kostas Georgiou avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.