-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
RoCky Wu
committed
Apr 6, 2016
1 parent
17cc945
commit 71ded13
Showing
2 changed files
with
4 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,18 @@ | ||
# Cepave AI Bot | ||
|
||
## Getting Started | ||
### Create bot by yourself for testing | ||
Replace your token in `src/ai.js` | ||
|
||
### Run AI Bot | ||
`npm start` | ||
|
||
### Add CepaveAIDev bot with contact | ||
Search `@CepaveAIDev_bot` in your telegram. | ||
![CepaveAIDev_bot](https://raw.githubusercontent.com/rwu823/CepaveAI/dev/assets/cepaveaidev_bot.png) | ||
|
||
Okay, talk to it, and look at your `Terminal` console | ||
|
||
## Commands | ||
|
||
- `gif` - [-r (random)] query a gif image from GIPHY | ||
- `girl` - get random beauty girl photo | ||
- `news` - get latest Apple News | ||
- `time` - get current time with beauty | ||
- `status` - get web site status | ||
- `$` - An exchange rate of currency |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,5 @@ | ||
const token = process.env.NODE_ENV === 'production' | ||
// CepaveAI_bot | ||
? '207182742:AAGrB9-Ok20tYqv_u7DrJHrORfUIVJkY_oQ' | ||
|
||
// CepaveAIDev_bot | ||
: '160573493:AAE6g3u8NFNqQXwDZPrHWuQIg2wKPnyX94A' | ||
|
||
const token = '207182742:AAGrB9-Ok20tYqv_u7DrJHrORfUIVJkY_oQ' | ||
const TelegramBot = require('node-telegram-bot-api') | ||
|
||
const ai = new TelegramBot(token, {polling: true}) | ||
|
||
module.exports = ai |