blasphemy / secretlounge

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

secretlounge

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

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

/a/ BETA ~ japan / anime related chat (nsfw)

/b/ BETA ~ random (nsfw)

/de/ BETA ~ german chat (sfw)

/gen/ BETA ~ general chat (sfw)

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
toggledebug - toggle debug mode (sends back all messages to you)
togglekarma - toggle karma notifications

About

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


Languages

Language:JavaScript 100.0%