Coder Social home page Coder Social logo

forgotten's Introduction

forgotten

Telegram reminders on demand.

Configuration

Forgotten expects a configuration file such as the following:

[tg]
token = TELEGRAM_TOKEN
owner = OWNER_ID

[core]
db_path = /path/to/database/file
media_path = /path/to/store/media/files
wait_time = 15
  • token: can be obtained from the bot father when creating the bot
  • owner: can be obtained from the bot by executing the /me command when it is launched. On the first launch, a value of 0 is recommended before you specify your Telegram ID
  • db_path: the user must have read/write permissions on the specified path
  • media_path: photos sent for the reminders will be stored here
  • wait_time: time to wait (in minutes) between each check for reminders that are ready to be sent

Execution

FORGOTTEN_CONF=/path/to/conf python3 forgotten.py

Commands

  • /adduser <tg_id> <name>: admin command, adds a user to the database. The ID can be obtained with the /me command
  • /listusers: admin command, list all users in the database
  • /rmuser <tg_id>: admin command, remove a user from the database, including all their stored reminders
  • /me: find Telegram ID
  • /remember: create a new reminder. The bot will ask for both date and message/photo
  • /remember <datetime>: create a new reminder. The bot will only ask for a message/photo
  • /cancel: cancel current operation

Note that all dates must be written in YYYY-MM-DD hh:mm format.

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.