Skip to content

Commit

Permalink
help message: note about how to use it in groups
Browse files Browse the repository at this point in the history
  • Loading branch information
derhuerst committed Apr 1, 2018
1 parent 3b2b81c commit a0ccb95
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion commands/help.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

const getCommandKeys = require('../lib/commands-keyboard')

const HANDLE = process.env.HANDLE
if (!HANDLE) {
console.error('Missing HANDLE env var.')
process.exit(1)
}

const text = `\
*This bot lets you use public transport in Berlin more easily.* You can do this:
\`/a(bfahrt)\` – Show departures at a station.
Expand All @@ -13,7 +19,11 @@ When specifying time, you can use the following formats:
- \`tomorrow 17:20\`
- \`8 pm\`
- \`tuesday at 6\`
The data behind this bot is from VBB, so departures & routing will be just as (in)accurate as in the BVG & VBB apps.`
The data behind this bot is from VBB, so departures & routing will be just as (in)accurate as in the BVG & VBB apps.
**When using this bot in a group**, telegram prevents it from listening to all messages. In this case you need to mention the bot in every message. For example:
1. \`/a@${HANDLE} U Friedrichstr.\`
2. \`@${HANDLE} in 10 min\``

const help = async (ctx, next) => {
const group = ctx.chat.type === 'group'
Expand Down

0 comments on commit a0ccb95

Please sign in to comment.