All Projects → secretlounge → secretlounge-ng

secretlounge / secretlounge-ng

Licence: other
a bot to make an anonymous group chat on Telegram

Programming Languages

python
139335 projects - #7 most used programming language

Labels

secretlounge-ng

Rewrite of secretlounge, a bot to make an anonymous group chat on Telegram.

Setup

$ pip3 install -r requirements.txt
$ cp config.yaml.example config.yaml
Edit config.yaml with your favorite text editor.
$ ./secretlounge-ng

@BotFather Setup

Message @BotFather to configure your bot as follows:

  • /setprivacy: enabled
  • /setjoingroups: disabled
  • /setcommands: paste the command list below

Command list

start - Join the chat (start receiving messages)
stop - Leave the chat (stop receiving messages)
users - Find out how many users are in the chat
info - Get info about your account
sign - Sign a message with your username
s - Alias of sign
tsign - Sign a message with your tripcode
t - Alias of tsign
motd - Show the welcome message
version - Get version & source code of this bot
modhelp - Show commands available to moderators
adminhelp - Show commands available to admins
toggledebug - Toggle debug mode (sends back all messages to you)
togglekarma - Toggle karma notifications
tripcode - Show or set a tripcode for your messages

FAQ

  1. How do I unban a blacklisted user from my bot?

To unban someone you need their Telegram User ID (preferred) or username/profile name. If you have a name you can use ./util/blacklist.py find to search your bot's database for the user record.

You can then run ./util/blacklist.py unban 12345678 to remove the ban.

  1. How do I demote somone I promoted to mod/admin at some point?

If you already have an User ID in mind, proceed below. Otherwise you can either use the find utility like explained above or run ./util/perms.py list to list all users with elevated rank.

Simply run ./util/perms.py set 12345678 user to remove the users' privileges.

This can also be used to grant an user higher privileges by exchanging the last argument with "mod" or "admin".

  1. What is the suggested setup to run multiple bots?

The blacklist.py and perms.py script, including advanced functions like blacklist syncing (./util/blacklist.py sync), support a structure like the following where each bot has its' own subdirectory:

root folder
\-- bot1
  \-- db.sqlite
  \-- config.yaml
\-- bot2
  \-- db.sqlite
  \-- ...
\-- ...
\-- README.md
\-- secretlounge-ng
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].