ilias-sp / twitch-chat-bot-php Goto Github PK
View Code? Open in Web Editor NEWThis is Izy. A full of features bot for Twitch Chat in PHP!
License: MIT License
This is Izy. A full of features bot for Twitch Chat in PHP!
License: MIT License
Hi.
I'm trying your bot (nice job) but I had an error related to php.ini, I'm telling you in case you want to add it to the instructions. I was getting this error:
"Unable to find the wrapper https"
I had to add a new extension in php.ini (extension=php_openssl.dll) in order to avoid it.
Thanks for sharing your job.
I try start bot, but I have error:
php startIzyBot.php
IZYBOT\lib\Twitchapi: API call to get returned with error. Exiting..
PHP Fatal error: Uncaught Exception: API call to get returned with error. Exiting.. in /home/a0568751/domains/twitch.fixel.ru/public_html/lib/TwitchAPI.php:353
Stack trace:
#0 /home/a0568751/domains/twitch.fixel.ru/public_html/lib/TwitchAPI.php(92): IZYBOT\lib\Twitchapi->_get_channel_data()
#1 /home/a0568751/domains/twitch.fixel.ru/public_html/lib/TwitchAPI.php(62): IZYBOT\lib\Twitchapi->_read_channel_data()
#2 /home/a0568751/domains/twitch.fixel.ru/public_html/lib/IzyBot.php(134): IZYBOT\lib\Twitchapi->__construct(Array, Object(IZYBOT\lib\Logger))
#3 /home/a0568751/domains/twitch.fixel.ru/public_html/startIzyBot.php(38): IZYBOT\lib\IzyBot->__construct(Array)
#4 {main}
thrown in /home/a0568751/domains/twitch.fixel.ru/public_html/lib/TwitchAPI.php on line 353
API keys in channel_credentials.php correct
IZYBOT\lib\Twitchapi: API call to get returned with error. Exiting..
Fatal error: Uncaught Exception: API call to get returned with error. Exiting.. in C:\MyStuff\WORK\OSPanel\domains\twitch\www\lib\TwitchAPI.php:353 Stack trace: #0 C:\MyStuff\WORK\OSPanel\domains\twitch\www\lib\TwitchAPI.php(92): IZYBOT\lib\Twitchapi->_get_channel_data() #1 C:\MyStuff\WORK\OSPanel\domains\twitch\www\lib\TwitchAPI.php(62): IZYBOT\lib\Twitchapi->_read_channel_data() #2 C:\MyStuff\WORK\OSPanel\domains\twitch\www\lib\IzyBot.php(134): IZYBOT\lib\Twitchapi->__construct(Array, Object(IZYBOT\lib\Logger)) #3 C:\MyStuff\WORK\OSPanel\domains\twitch\www\startIzyBot.php(38): IZYBOT\lib\IzyBot->__construct(Array) #4 {main} thrown in C:\MyStuff\WORK\OSPanel\domains\twitch\www\lib\TwitchAPI.php on line 353
I'm getting this error. I checked lib\TwitchAPI.php and it works with old kraken API. I'm not sure if it's still maintained or not. Will you update your bot for new helix API?
Hi there! I was wondering if there was any way to add VIPs with this bot?
Is there a simple trick that makes the bot follow multiple chat?
I know this isn't an issue however I was wondering if you'd be able to share a method to getting if the user is a subscriber to the channel or not
Regards,
Ezit
Hello,
I want to know requirements of PHP version to run this app appropriately.
Best,
Seongho
Not really an issue - more a question. Do you know how to format the bot response string in PHP to send colour code information to change the foreground or background colour of IRC messages the bot sends to chat?
Your bot code has been very useful for me - thanks!
Could I put this code in a regular domain and use the same bot in multiple channels?
How i can add a Admin User in the Admin_Username.cfg manually and what is the syntax of the file?
Is it possible to add Admins in the Webinterface of the Bot?
Hello.
Do I need the "oauth:" part of the token from the token generator or not?
Just asking.
hello,
i know this chat bot is created for run locally, but how i can run it on webserver (ubuntu)?
i tried it several ways but got no luck :(
Curious here as to why on user commands your doing;
elseif ($message_text === $this->bot_config['giveaway_join_keyword'])
and
elseif ($words_in_message_text[0] === $this->bot_config['quote_keyword'])
I have noticed some commands are not being picked up and I am wondering if its because of the way it processes user messages. All Admin commands are using '$words_in_message_text[0]' and SOME user commands are using $words_in_message_text[0] some are using $message_text.
So the question is why use message_text and not the first element of the array? Only my admin users can place bets, regular users cannot for some weird reason. It has trouble picking them up. So I can't find why this isn't processing them correctly and this is the only thing I cant think of.
This is how you check for vips
if (isset($json_response['chatters']['vips']))
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.