Skip to content

Latest commit

 

History

History
83 lines (56 loc) · 1.78 KB

README.md

File metadata and controls

83 lines (56 loc) · 1.78 KB

/b/

a bot to make an anonymous group chat on telegram, powered by coffea

https://i.imgur.com/m8V75N9.png

Available as @secretloungebot on telegram. (BETA)

Setup

git clone https://github.com/6697/secretlounge
cd secretlounge
npm install
npm install coffea@1.0.0-beta18

(the last line is a workaround for an npm bug that makes it think beta9 is higher than beta18)

Config

Create a config.json file:

{
  "protocol": "telegram",
  "token": "PUT_YOUR_TELEGRAM_TOKEN_FROM_BOTFATHER_HERE"
}

Running

Use this for production use:

npm start

During development, you can also use:

npm run start:dev

To enable debug messages and run the code with on-the-fly compilation (via babel-node).

Or you can use:

npm run watch

To automatically restart the bot when the code changes.

@botfather setup

Message @botfather to change your bot config:

  • Run /setprivacy, select your bot and Enable it.
  • Run /setjoingroups, select your bot and Disable it.
  • Run /setcommands, select your bot and paste the command list below.

Command list

start - join the chat (start receiving messages)
stop - leave the chat (stop receiving messages)
users - get list of users
info - get info about your account
motd - show the welcome message
source - get the source code of this bot
version - show the version of this bot
issues - report issues with this bot
changelog - show the release history
modhelp - show commands for mods
adminhelp - show commands for admins
debug - toggle debug mode (sends back all messages to you)