{"id":22361726,"url":"https://github.com/foresthoffman/bot","last_synced_at":"2025-07-30T14:32:25.678Z","repository":{"id":57481085,"uuid":"114717435","full_name":"foresthoffman/bot","owner":"foresthoffman","description":"A Go package for building Twitch.tv IRC chat bots. Previously \"twitchbot\".","archived":false,"fork":false,"pushed_at":"2021-05-27T19:57:57.000Z","size":16,"stargazers_count":22,"open_issues_count":0,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-20T13:33:56.967Z","etag":null,"topics":["bot","go","golang","irc","twitch"],"latest_commit_sha":null,"homepage":"","language":"Go","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/foresthoffman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-19T04:01:19.000Z","updated_at":"2023-11-14T20:15:18.000Z","dependencies_parsed_at":"2022-09-26T17:41:27.966Z","dependency_job_id":null,"html_url":"https://github.com/foresthoffman/bot","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foresthoffman%2Fbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foresthoffman%2Fbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foresthoffman%2Fbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foresthoffman%2Fbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/foresthoffman","download_url":"https://codeload.github.com/foresthoffman/bot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228147625,"owners_count":17876710,"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":["bot","go","golang","irc","twitch"],"created_at":"2024-12-04T16:32:33.274Z","updated_at":"2024-12-04T16:32:33.880Z","avatar_url":"https://github.com/foresthoffman.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Bot\n\nThe bot package provides a set of functions that control a basic Twitch.tv chat bot. The package also exposes an interface which can be used to create a custom chat bot. See the following series for a step-by-step tutorial on [Building a Twitch.tv Chat Bot](https://dev.to/foresthoffman/building-a-twitchtv-chat-bot-with-go---part-1-i3k) with this package.\n\n### Installation\n\nRun `go get github.com/foresthoffman/bot`\n\n### Importing\n\nImport this package by including `github.com/foresthoffman/bot` in your import block.\n\ne.g.\n\n```go\npackage main\n\nimport(\n    ...\n    \"github.com/foresthoffman/bot\"\n)\n```\n\n### Usage\n\nBasic usage:\n\n```go\npackage main\n\nimport (\n\t\"github.com/foresthoffman/bot\"\n\t\"time\"\n)\n\nfunc main() {\n\n\t// Replace the channel name, bot name, and the path to the private directory with your respective\n\t// values.\n\tmyBot := bot.BasicBot{\n\t\tChannel:     \"twitch\",\n\t\tMsgRate:     time.Duration(20/30) * time.Millisecond,\n\t\tName:        \"TwitchBot\",\n\t\tPort:        \"6667\",\n\t\tPrivatePath: \"../private/oauth.json\",\n\t\tServer:      \"irc.chat.twitch.tv\",\n\t}\n\tmyBot.Start()\n}\n```\n\n_That's all, enjoy!_\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforesthoffman%2Fbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fforesthoffman%2Fbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforesthoffman%2Fbot/lists"}