{"id":16440827,"url":"https://github.com/idevelopthings/laravel-twitch-irc","last_synced_at":"2025-10-27T03:31:20.670Z","repository":{"id":41866860,"uuid":"437334226","full_name":"iDevelopThings/laravel-twitch-irc","owner":"iDevelopThings","description":"Twitch IRC Bots in PHP \\o/","archived":false,"fork":false,"pushed_at":"2023-10-09T20:59:58.000Z","size":79,"stargazers_count":6,"open_issues_count":3,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-01T01:51:14.002Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iDevelopThings.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null},"funding":{"github":"iDevelopThings"}},"created_at":"2021-12-11T16:35:27.000Z","updated_at":"2024-12-12T06:11:01.000Z","dependencies_parsed_at":"2023-02-16T11:16:22.656Z","dependency_job_id":null,"html_url":"https://github.com/iDevelopThings/laravel-twitch-irc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iDevelopThings%2Flaravel-twitch-irc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iDevelopThings%2Flaravel-twitch-irc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iDevelopThings%2Flaravel-twitch-irc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iDevelopThings%2Flaravel-twitch-irc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iDevelopThings","download_url":"https://codeload.github.com/iDevelopThings/laravel-twitch-irc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238431561,"owners_count":19471411,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T09:13:09.112Z","updated_at":"2025-10-27T03:31:15.372Z","avatar_url":"https://github.com/iDevelopThings.png","language":"PHP","funding_links":["https://github.com/sponsors/iDevelopThings"],"categories":[],"sub_categories":[],"readme":"# laravel-twitch-irc\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/idevelopthings/laravel-twitch-irc.svg?style=flat-square)](https://packagist.org/packages/idevelopthings/laravel-twitch-irc)\n[![GitHub Tests Action Status](https://img.shields.io/github/workflow/status/idevelopthings/laravel-twitch-irc/run-tests?label=tests)](https://github.com/idevelopthings/laravel-twitch-irc/actions?query=workflow%3Arun-tests+branch%3Amain)\n[![GitHub Code Style Action Status](https://img.shields.io/github/workflow/status/idevelopthings/laravel-twitch-irc/Check%20\u0026%20fix%20styling?label=code%20style)](https://github.com/idevelopthings/laravel-twitch-irc/actions?query=workflow%3A\"Check+%26+fix+styling\"+branch%3Amain)\n[![Total Downloads](https://img.shields.io/packagist/dt/idevelopthings/laravel-twitch-irc.svg?style=flat-square)](https://packagist.org/packages/idevelopthings/laravel-twitch-irc)\n\nTwitch 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.\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require idevelopthings/laravel-twitch-irc\n```\n\nYou can publish the config file with:\n```bash\nphp artisan vendor:publish --tag=\"twitch-irc-config\"\n```\n\n## Usage\n\nPublish the config file first, add to your .env: \n\n```shell\nTWITCH_BOT_USERNAME=\"your bots username\"\nTWITCH_BOT_ACCESS_TOKEN=\"your bots token\"\n```\nYou can obtain a token here: https://twitchapps.com/tmi/\nWhen using the token, don't include the \"oauth:\" prefix.\n\nNow we can create a command, the default location is app/Services/TwitchIrc/Commands, you can change this path in the config file\n\n```php\n\u003c?php\nnamespace App\\Services\\TwitchIrc\\Commands;\n\nuse TwitchIrc\\Bot\\Command\\BaseCommand;\n\nclass HelloWorldCommand extends BaseCommand\n{\n    public function identifier(): string {\n        return \"hello\";\n    }\n\n    public function aliases(): array {\n        return [\n            'hi',\n            'hw',\n            'helloworld',\n        ];\n    }\n\n    public function description(): string {\n        return \"Responds with hello world.\";\n    }\n\n    public function handle(): void {\n        $this-\u003ereply('Hello world.');\n    }\n}\n```\n\nNow you can run \"php artisan twitchbot\" to start the bot.\nWe can also use \"php artisan twitchbot --stop\" to stop the bot, which is useful for CI setups.\n\n## Testing\n\n```bash\ncomposer test\n```\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.\n\n## Security Vulnerabilities\n\nPlease review [our security policy](../../security/policy) on how to report security vulnerabilities.\n\n## Credits\n\n- [Sam Parton](https://github.com/iDevelopThings)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidevelopthings%2Flaravel-twitch-irc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fidevelopthings%2Flaravel-twitch-irc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidevelopthings%2Flaravel-twitch-irc/lists"}