https://github.com/idevelopthings/laravel-twitch-irc
Twitch IRC Bots in PHP \o/
https://github.com/idevelopthings/laravel-twitch-irc
Last synced: 3 months ago
JSON representation
Twitch IRC Bots in PHP \o/
- Host: GitHub
- URL: https://github.com/idevelopthings/laravel-twitch-irc
- Owner: iDevelopThings
- License: mit
- Created: 2021-12-11T16:35:27.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-09T20:59:58.000Z (over 1 year ago)
- Last Synced: 2025-02-01T01:51:14.002Z (4 months ago)
- Language: PHP
- Size: 77.1 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
- Security: .github/SECURITY.md
Awesome Lists containing this project
README
# laravel-twitch-irc
[](https://packagist.org/packages/idevelopthings/laravel-twitch-irc)
[](https://github.com/idevelopthings/laravel-twitch-irc/actions?query=workflow%3Arun-tests+branch%3Amain)
[](https://github.com/idevelopthings/laravel-twitch-irc/actions?query=workflow%3A"Check+%26+fix+styling"+branch%3Amain)
[](https://packagist.org/packages/idevelopthings/laravel-twitch-irc)Twitch IRC Bot for laravel applications. This ships with the ability to create custom commands for your bot, with aliases, cooldowns, ability to connecto to multiple channels, etc.
## Installation
You can install the package via composer:
```bash
composer require idevelopthings/laravel-twitch-irc
```You can publish the config file with:
```bash
php artisan vendor:publish --tag="twitch-irc-config"
```## Usage
Publish the config file first, add to your .env:
```shell
TWITCH_BOT_USERNAME="your bots username"
TWITCH_BOT_ACCESS_TOKEN="your bots token"
```
You can obtain a token here: https://twitchapps.com/tmi/
When using the token, don't include the "oauth:" prefix.Now we can create a command, the default location is app/Services/TwitchIrc/Commands, you can change this path in the config file
```php
reply('Hello world.');
}
}
```Now you can run "php artisan twitchbot" to start the bot.
We can also use "php artisan twitchbot --stop" to stop the bot, which is useful for CI setups.## Testing
```bash
composer test
```## Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Contributing
Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.
## Security Vulnerabilities
Please review [our security policy](../../security/policy) on how to report security vulnerabilities.
## Credits
- [Sam Parton](https://github.com/iDevelopThings)
- [All Contributors](../../contributors)## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.