soatok/headless-lounge-bot 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

soatok/headless-lounge-bot

Composer 安装命令:

composer require soatok/headless-lounge-bot

包简介

Telegram bot for ensuring group access is limited to e.g. Twitch subscribers and/or Patreon supporters.

README 文档

README

Support on Patreon Linux Build Status Latest Stable Version Latest Unstable Version License

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:

  1. Talk to @HeadlessLounge_Bot. Make sure to link your own third-party accounts. (Twitch, Patreon, etc.)
  2. Invite @HeadlessLounge_Bot to your group. (Make sure you're an admin.)
  3. 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...

  1. They have linked their own third-party accounts by talking to the bot directly.
  2. 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:

<?php
return 'your-token-here';

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.

统计信息

  • 总下载量: 2
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 5
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 5
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: ISC
  • 更新时间: 2019-08-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固