konstantin-kuklin / stream-defense-bot
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/konstantin-kuklin/stream-defense-bot
Requires
- php: ^7.1.3
- padraic/phar-updater: ^1.0
- phergie/phergie-irc-client-react: ^3.3
- symfony/console: ^4.0
- symfony/event-dispatcher: ^4.0
- symfony/lock: ^4.0
- symfony/yaml: ^4.0
Requires (Dev)
- composer/composer: ^1.6
- justinrainbow/json-schema: ^5.2
- phpunit/phpunit: ^7.0
- seld/phar-utils: ^1.0
- symfony/finder: ^4.0
- symfony/process: ^4.0
This package is not auto-updated.
Last update: 2025-10-18 05:14:54 UTC
README
StreamDefenseBot helps you to manage your accounts in hard fights of streamdefense.com
Installation / Usage
Install PHP 7.1.3 or above. PHP.net.
Download SdBot.phar file here.
Update the bot to the latest version:
php sdbot.phar self-update
Create config.yaml file near the sdbot.phar file. File signature example with descriptions /config/config.yml.dst
That is it! The bot is ready:
php sdbot.phar run
Documentation
Bot knows about 4 message types:
- message from bot
owner(set owner in config.yml) - message from bot
leader(set follow_to in config.yml) - message from anybody else (always will be ignored)
- special messages from TTDbot
Owner
You can't become a bot owner except by config.yml.
You have additional bot command which are always starts from special char $:
- Follow command variations allowed if the bot not yet following somebody:
$followall the bots for whom you own the owner will repeat your messages@bot1 $followthe concretebot1will repeat your messages if you are the owner for it@bot1 $follow @somebodythe concretebot1will start followingsomebodyif your are the owner ofbot1group$followeach bot ingroupwill start following you if your are his owner (so if in chat 2 different bot have group OP, but different owners - behavior will be different, I hope I was clear here in explanation)group$follow @somebodysame as previous, but will followsomebody
- Unfollow command has the same syntax
$initall your bots init their game by writing!classmessage fromconfig.yml
Game commands:
- You have all grants as a leader plus !leave for bot.
- If your twitch nick has owner+leader grants when you !leave the bot will leave too.
Leader
As a leader of some bots you can:
$unfollowto stop following all bots from you@bot $unfollowto stop following you for concretebotgroup$unfolloweach bot ingroupstop following you if you are his leader
All followed you bots will repeat that commands:
- !t !train
- !p !pd !sp
- !1 !2 !3 !4 !5 !6 !7 !8 !9 !10 !11 !12
- !a !altar
- !fill
- ! - simple ping command
Also you are able to give an order:
@bot1 !ajustbot1will repeat!aif you are his leadergroup!aeach bot ingrouprepeat!aif you are his leader
The allowed order list is all commands from repeat section plus:
- !map1 !map2 !map3 !map4 !map5 !map6 !map7 !map8 !map9
- !archer !bard !frostmage !firemage !rogue !alchemist
- !hireshade !hireicelo !hireadara !hiremoor !hiremolan !hiregunnar !hirejubal !hirecortez
- !mfollow !unfollow
- !mfill !ma !mt !m1 !m2 !m3 !m4 !m5 !m6 !m7 !m8 !m9 !m10 !m11 !m12
- !mp !mpd !msp
Afterword
It may not stable in some cases, because was written like in hackathon style without spending lot times. So feel free to open bug issues or ask questions! Have a good game!
