{"id":24568144,"url":"https://github.com/vacovsky/trebot","last_synced_at":"2025-04-22T15:24:58.094Z","repository":{"id":40462509,"uuid":"99946532","full_name":"vacovsky/trebot","owner":"vacovsky","description":"Jeopardy bot plugin for go-chat-bot (https://github.com/go-chat-bot/bot)","archived":false,"fork":false,"pushed_at":"2022-05-06T20:08:34.000Z","size":12743,"stargazers_count":5,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T16:23:11.912Z","etag":null,"topics":["bot","chat","go-chat-bot","golang","jeopardy","jservice","plugin","slack","trivia"],"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/vacovsky.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-08-10T17:03:05.000Z","updated_at":"2022-11-29T22:54:59.000Z","dependencies_parsed_at":"2022-08-09T21:12:16.462Z","dependency_job_id":null,"html_url":"https://github.com/vacovsky/trebot","commit_stats":null,"previous_names":["vacoj/trebot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vacovsky%2Ftrebot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vacovsky%2Ftrebot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vacovsky%2Ftrebot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vacovsky%2Ftrebot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vacovsky","download_url":"https://codeload.github.com/vacovsky/trebot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250265725,"owners_count":21402161,"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","chat","go-chat-bot","golang","jeopardy","jservice","plugin","slack","trivia"],"created_at":"2025-01-23T14:19:54.042Z","updated_at":"2025-04-22T15:24:58.047Z","avatar_url":"https://github.com/vacovsky.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Trebot - trivia plugin\n\n#### for go-chat-bot https://github.com/go-chat-bot/bot\n\n![Circle CI](https://circleci.com/gh/vacoj/trebot/tree/master.svg?style=svg)\n\n## Usage / Bot Interaction\n\n### Get a new question\n\n```slack\n!trivia new\n```\n\n\u003cimg src=\"https://raw.githubusercontent.com/vacoj/trebot/master/img/s2.png\"\u003e\n\n### Answer a question\n\n```slack\n!trivia answer pineapple\nor\npineapple\n```\n\n\u003cimg src=\"https://raw.githubusercontent.com/vacoj/trebot/master/img/s1.png\"\u003e\n\n### View the Scoreboard\n\n```slack\n!trivia scoreboard\n```\n\n```\n+------+------------------+--------+---------+-------+-----+----------+\n| RANK |       USER       | SCORE  | CORRECT | WRONG | NEW | ACCURACY |\n+------+------------------+--------+---------+-------+-----+----------+\n|    1 | casey            | 225300 |     164 |   122 |  15 |    0.573 |\n|    2 | viki             |  63800 |     111 |   234 |  42 |    0.322 |\n|    3 | vacoj            |  60700 |      40 |    65 |  16 |    0.381 |\n|    4 | bologna          |  58000 |      61 |   128 |  50 |    0.323 |\n|    5 | josh             |  55800 |      53 |   310 |  45 |    0.146 |\n|    6 | krem             |  38200 |      73 |   196 |  33 |    0.271 |\n|    7 | joey             |  18000 |       2 |     2 |   0 |    0.500 |\n|    8 | k-w              |   1000 |       0 |     0 |   0 |    0.000 |\n+------+------------------+--------+---------+-------+-----+----------+\n```\n\n### View \"About\" information\n\n```slack\n!trivia about\n```\n\n## Setup / Installation\n\n### Stand Alone\n\n``` bash\ngo get -u \"github.com/vacoj/trebot\"\ngo get -u \"github.com/vacoj/trebot/trivia\"\ngo get -u \"github.com/go-chat-bot/bot/slack\"\n# Set your bot token for slack as an environment variable called \"trebot\"\nexport trebot=\"xxxx-yourslackbotkey\"\ntrebot\n```\n\n### As a plugin for an existing bot\n\n#### Install plugin\n\n``` bash\ngo get -u \"github.com/vacoj/trebot/trivia\"\n#Set your bot token for slack as an environment variable called \"trebot\"\nexport TREBOT_KEY=\"xxxx-yourslackbotkey\"\n```\n\n#### Update your bot main to include the plugin\n\n``` go\npackage main\n\nimport (\n\t\"os\"\n\n\t_ \"github.com/vacoj/trebot/trivia\"\n\t\"github.com/go-chat-bot/bot/slack\"\n)\n\nfunc main() {\n\tslack.Run(os.Getenv(\"TREBOT_KEY\"))\n}\n```\n\n## Contributing\n\nPull requests are encouraged. Please submit unit tests with any submitted patch. Also, please make it clear what your patch does in branch and commit messages.\n\n1. Fork the repository\n2. Create your feature branch `git checkout -b change-to-thing`\n3. Commit your changes `git commit -am 'changes to the thing'`\n4. Push to the branch `git push origin change-to-thing`\n5. Create new pull request\n6. Be patient\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvacovsky%2Ftrebot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvacovsky%2Ftrebot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvacovsky%2Ftrebot/lists"}