Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mehdisadeghi/saaghibot
Yet another telegram bot. This one is a poet.
https://github.com/mehdisadeghi/saaghibot
khayyam poet telegram telegram-bot
Last synced: 26 days ago
JSON representation
Yet another telegram bot. This one is a poet.
- Host: GitHub
- URL: https://github.com/mehdisadeghi/saaghibot
- Owner: mehdisadeghi
- License: mit
- Created: 2016-01-31T21:23:04.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2021-05-09T09:58:40.000Z (over 3 years ago)
- Last Synced: 2024-06-11T19:43:50.191Z (5 months ago)
- Topics: khayyam, poet, telegram, telegram-bot
- Language: JavaScript
- Homepage: https://t.me/SaaghiBot
- Size: 56.6 KB
- Stars: 14
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SaaghiBot [![npm version](https://badge.fury.io/js/saaghibot.svg)](https://badge.fury.io/js/saaghibot)
Yet another telegram bot. This one is a poet.## What is this?
SaaghiBot is a telegram app based on nodejs. It polls updates from Telegram and processes them.## What it does?
It returns random quatrains out of 106 quatrains which are listed in `omarkkhayyam_list.yaml` file. It also supports a basic search.## How to use
Try mentioning @SaaghiBot in Telegram chats, with or without search terms.## How to run a copy
First make sure you have a not so old version of nodejs with ES6 support installed. Then from npm:# yarn global add saaghibot // or alternatively npm i -g saaghibot
Then run the bot using your bot token:
$ TELEGRAM_BOT_TOKEN= saaghibot
## Development
Obtain a bot token from [BotFather](https://t.me/botfather) and make sure to enable inline queries for your bot using `/setinline`.
Then run the following:$ yarn install
$ TELEGRAM_BOT_TOKEN= yarn start## License
MIT