From 71ded132f3cb726ad46395e54b3b294918c4215a Mon Sep 17 00:00:00 2001 From: RoCky Wu Date: Thu, 7 Apr 2016 06:48:42 +0800 Subject: [PATCH] Update testing for each self bot --- README.md | 8 +++----- src/ai.js | 9 +-------- 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 458a8cb..29da74f 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/src/ai.js b/src/ai.js index 6c76edb..61a7a99 100644 --- a/src/ai.js +++ b/src/ai.js @@ -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