Download the PHP package soatok/headless-lounge-bot without Composer
On this page you can find all versions of the php package soatok/headless-lounge-bot. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download soatok/headless-lounge-bot
More information about soatok/headless-lounge-bot
Files in soatok/headless-lounge-bot
Package headless-lounge-bot
Short Description Telegram bot for ensuring group access is limited to e.g. Twitch subscribers and/or Patreon supporters.
License ISC
Homepage http://github.com/soatok/headless-lounge-bot
Informations about the package headless-lounge-bot
Headless Lounge Bot
Telegram bot for ensuring group access is limited to e.g. Twitch subscribers and/or Patreon supporters.
Using the Bot to Protect Your Groups
The bot operated by Soatok (
@HeadlessLounge_Bot
) is only available if you're one of Soatok's patrons at the Dhole's Delight ($3/month) tier or higher.
Setup is straightforward:
- Talk to
@HeadlessLounge_Bot
. Make sure to link your own third-party accounts. (Twitch, Patreon, etc.) - Invite
@HeadlessLounge_Bot
to your group. (Make sure you're an admin.) - Type
/enforce [service] [minimum]
/enforce Twitch
for Tier 1+ Twitch subs./enforce Twitch 2
for Tier 2+ Twitch subs./enforce Patreon 5
for $5/mo. or more pledge./enforce Patreon 10
for $10/mo. or more pledge.
Anyone who joins the group will be auto-kicked unless...
- They have linked their own third-party accounts by talking to the bot directly.
- They have met your enforcement requirements.
Administrators can allow exceptions to this rule on a case-by-case basis by
typing /permit @Telegram_Username
.
Note: If you choose to add multiple enforcements (i.e. Twitch and Patreon),
satisfying any of the requirements will avoid being auto-kicked.
(Logically: It's an OR
not an AND
operation.)
Setting up and Deploying Your own Bot
After cloning this repository and setting up your webserver with HTTPS, get an
API key from BotFather. Stick that in local/telegram-token.php
like so:
Do the same with your bot's Telegram username (local/telegram-username.php
)
and User ID (local/telegram-user-id.php
).
You can also configure your own local settings inside local/settings.php
(see
src/settings.php
for more details).
Once your configuration is complete, make sure you run composer install
in
the project's root directory.
Next, run bin/keygen.php
and bin/setup-webhook.php
.
Finally, run the .sql
files inside the sql/
directory to setup the database
tables.
All versions of headless-lounge-bot with dependencies
ext-json Version *
ext-pdo Version *
ezyang/htmlpurifier Version ^4
guzzlehttp/guzzle Version ^6
soatok/patreon Version ^0|^1
slim/slim Version ^3.1
soatok/anthrokit Version ^0|^1