Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shincurry/telegram-bot
Telegram Bot Node.js Server
https://github.com/shincurry/telegram-bot
Last synced: 4 days ago
JSON representation
Telegram Bot Node.js Server
- Host: GitHub
- URL: https://github.com/shincurry/telegram-bot
- Owner: shincurry
- License: gpl-3.0
- Created: 2015-12-04T12:27:53.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-13T09:05:16.000Z (almost 9 years ago)
- Last Synced: 2024-04-18T06:19:57.149Z (7 months ago)
- Language: JavaScript
- Homepage:
- Size: 31.3 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DeviantART-Bot
DeviantART Telegram Bot Server
work in process.
## DeviantART Bot Demo
[Deviant Bot](https://telegram.me/deviant_art_bot)
## Installation
```
$ git clone https://github.com/ShinCurry/telegram-bot.git
$ cd telegram-bot
$ cp config.example.js config.js
$ vi config.js
$ npm install
```## Configuration
Telegram setWebHook
```
https://api.telegram.org/bot/setwebhook?url=/deviantart
```edit App & Modules `conifg.js`
```
var config = {
app : {
url : "127.0.0.1",
port : 3003
}
}
```## Modules
* DeviantART Bot
* CFC Studio Bot## Modules Usage
DeviantART Bot
``` Javascript
var daBot = require('./modules/deviantart-bot');daBot.reply(req.body, function() {
console.log("responsed.");
res.status(200).end();
});
```## Run
```
$ npm start
```### Running Forever
#### Start```
$ npm install forever -g
$ forever start app.js
```
#### Stop```
$ forever stop app.js
```### DeviantART Bot Commands
```
Commands list:
hot - fetch Hot DeviantART
about - About This Bot
```## License
GPL 3.0
## Reference
* [Express.js](http://expressjs.com)