-
Notifications
You must be signed in to change notification settings - Fork 16
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
fletcherist
committed
Jul 1, 2018
1 parent
438044d
commit 1207eb6
Showing
4 changed files
with
20 additions
and
19 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
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,16 +1,16 @@ | ||
const Alice = require('../src/index') | ||
const alice = new Alice() | ||
|
||
alice.first(async (ctx) => { | ||
return ctx.reply('Привет! Смотри, что я могу') | ||
alice.welcome(async (ctx) => { | ||
ctx.reply('Привет! Смотри, что я могу') | ||
}) | ||
|
||
alice.command('дай совет', async (ctx) => { | ||
return ctx.reply('Make const not var') | ||
ctx.reply('Make const not var') | ||
}) | ||
|
||
alice.any(async (ctx) => { | ||
return ctx.reply('О чём это вы?') | ||
ctx.reply('О чём это вы?') | ||
}) | ||
|
||
alice.listen('/', 8080) |
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
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