Skip to content

Commit

Permalink
Update testing for each self bot
Browse files Browse the repository at this point in the history
  • Loading branch information
RoCky Wu committed Apr 6, 2016
1 parent 17cc945 commit 71ded13
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
8 changes: 3 additions & 5 deletions README.md
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
9 changes: 1 addition & 8 deletions src/ai.js
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

0 comments on commit 71ded13

Please sign in to comment.