https://github.com/souler/node-telegram-bot-tap-if
Telegram bot that keeps count of the taps into /TapIfXXX commands
https://github.com/souler/node-telegram-bot-tap-if
bot nodejs openshift telegram telegram-bot
Last synced: about 2 months ago
JSON representation
Telegram bot that keeps count of the taps into /TapIfXXX commands
- Host: GitHub
- URL: https://github.com/souler/node-telegram-bot-tap-if
- Owner: Souler
- License: mit
- Created: 2017-01-04T21:32:54.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-09T21:36:07.000Z (over 9 years ago)
- Last Synced: 2025-05-15T16:51:32.541Z (about 1 year ago)
- Topics: bot, nodejs, openshift, telegram, telegram-bot
- Language: JavaScript
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# telegram-bot-tap-if
[](https://telegram.me/TapIfBot)
This bot keeps count of total and unique tap count on any command that starts
with /TapIf (by default, telegram re-sends to the current chat any command you
tap. Think of it as a simplified version any of the available poll bots.
## Usage
There is currently [a running bot](https://telegram.me/TapIfBot), try it before deploying your own.
## Contributing
First clone
```
$ git clone git@github.com:Souler/node-telegram-bot-tap-if.git
$ npm install
$ npm start
```
## Deploying
### Openshift v2
First create a gear with the following command:
```
$ rhc app create -a tapifbot \
-t https://raw.githubusercontent.com/icflorescu/openshift-cartridge-nodejs/master/metadata/manifest.yml \
-t mongodb-2.4 \
--env NPM_CONFIG_PRODUCTION="true" \
--env TELEGRAM_BOT_TOKEN="__YOUR_BOT_TOKEN__" \
--env DATABASE_ADAPTER="mongodb" \
--env DATABASE_URL="OPENSHIFT_MONGODB_DB_URL" \
--env DEBUG="tap-if-bot:*" \
--no-git
$ rhc configure-app -a tapifbot \
--no-auto-deploy \
--deployment-type binary
```
Then you can deploy the project by running:
```
$ npm run deploy
```
## License
MIT