{"id":16392042,"url":"https://github.com/mikeshultz/capitolguy","last_synced_at":"2025-09-01T03:08:08.048Z","repository":{"id":32951042,"uuid":"36547515","full_name":"mikeshultz/capitolguy","owner":"mikeshultz","description":"Proof of concept of an IRC bot that utilizes the Vote Smart API.","archived":false,"fork":false,"pushed_at":"2015-05-31T19:03:46.000Z","size":164,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-22T22:27:52.367Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"shadowsocks/shadowsocks-windows","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mikeshultz.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":"2015-05-30T07:04:55.000Z","updated_at":"2015-05-30T21:44:40.000Z","dependencies_parsed_at":"2022-09-04T01:01:24.212Z","dependency_job_id":null,"html_url":"https://github.com/mikeshultz/capitolguy","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mikeshultz/capitolguy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikeshultz%2Fcapitolguy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikeshultz%2Fcapitolguy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikeshultz%2Fcapitolguy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikeshultz%2Fcapitolguy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikeshultz","download_url":"https://codeload.github.com/mikeshultz/capitolguy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikeshultz%2Fcapitolguy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273068853,"owners_count":25039911,"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","status":"online","status_checked_at":"2025-09-01T02:00:09.058Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11T04:48:18.388Z","updated_at":"2025-09-01T03:08:08.031Z","avatar_url":"https://github.com/mikeshultz.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Logo](https://votesmart.org/static/images/subpages/share/capitol_guy_blue_trans.gif)\n# capitolguy\nProof of concept of an IRC bot that utilizes the [Vote Smart API](https://votesmart.org/share/api).\n\n## Getting started\n\nYou can always get help by running `python capitolguy.py --help`\n\n    usage: capitolguy.py [-h] [--nick N] [--server SERVER] [--port PORT]\n                         [--name NAME]\n                         C [C ...]\n\n    Handle requests for querying Vote Smart data.\n\n    positional arguments:\n      C                IRC channel(s) to join.\n\n    optional arguments:\n      -h, --help       show this help message and exit\n      --nick N         Nickname the bot should use, if available.\n      --server SERVER  IRC server to connect to.\n      --port PORT      IRC server's port to connect to.\n      --name NAME      Bot's \"Real Name\"\n\n### Configure\n\nCopy config.ini.tpl to config.ini.\n\n    cp config.ini.tpl config.ini\n\nEdit the configuration as  you see fit.\n\n### Run\n\nRun the IRC daemon.  \n\n    python capitolguy.py --nick CapitolDude --server irc.freenode.net '#mycoolchannel' '#anotherchannel' \u0026\n\n## Commands\n\nYou can run these commands in the IRC channel and the bot will respond(unless they were removed from `config.ini`).\n\n### Base Commands\n\n#### !sayhi\n\nCommand that makes the bot announce itself.\n\n    \u003cmikeshultz\u003e !sayhi\n    \u003cVoteSmartBot\u003e Hello, I am The Capitol Guy! I'm a government and elections transparency bot for #votesmart.  Do let them know if I'm acting strangely.\n\n#### !repeat\n\nStupid command to repeat whatever you tell it.\n\n    \u003cmikeshultz\u003e !repeat I'm a little teapot!\n    \u003cVoteSmartBot\u003e I'm a little teapot!\n\n### Vote Smart Specific Commands\n\n#### !bill\n\nCommand that provides minimal data on a bill including a link to the page on votesmart.org for more information.\n\n    \u003cmikeshultz\u003e !bill HR 3361\n    \u003cCapitolGuy\u003e USA FREEDOM Act(HR 3361).  More information: https://votesmart.org/bill/18243\n    \u003cCapitolGuy\u003e (HR 3361).  More information: https://votesmart.org/bill/18243\n\n#### !candidatesearch\n\nCommand to search for a candidate by last name.\n\n    \u003cmikeshultz\u003e !candidatesearch Rubio\n    \u003cCapitolGuy\u003e Marco Rubio: https://votesmart.org/candidate/1601\n\n#### !districtbyzip\n\nCommand that will provide the districts for a particular 5-digit or 9-digit USPS Zip code.\n\n    \u003cmikeshultz\u003e !districtbyzip 19403-2801\n    \u003cCapitolGuy\u003e I found 3 districts for 19403-2801: U.S. House District 6; State House District 150; State Senate District 44.  More Information: https://votesmart.org/search?q=19403-2801\n\n#### !officialsearch\n\nCommand to search for office holders by last name.\n\n    \u003cmikeshultz\u003e !officialsearch Obama\n    \u003cCapitolGuy\u003e President Barack Obama II: https://votesmart.org/candidate/9490\n    \u003cCapitolGuy\u003e Senator Erin Oban: https://votesmart.org/candidate/152042\n\n#### !statefact\n\nCommand to query the Vote Smart API for a random state fact.  It can accept codes(MT) or name(montana), but they *do* need to be spelled properly.\n\n    \u003cmikeshultz\u003e !statefact Maine\n    \u003cVoteSmartBot\u003e Maine's highest point is Mt. Katahdin, 5,268 ft.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikeshultz%2Fcapitolguy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikeshultz%2Fcapitolguy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikeshultz%2Fcapitolguy/lists"}