{"id":17770097,"url":"https://github.com/j3rn/votebot","last_synced_at":"2025-04-01T14:24:44.677Z","repository":{"id":21428420,"uuid":"24746573","full_name":"J3RN/votebot","owner":"J3RN","description":"An IRC bot to count votes","archived":false,"fork":false,"pushed_at":"2016-02-18T23:54:48.000Z","size":49,"stargazers_count":0,"open_issues_count":2,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-07T09:13:12.717Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Clojure","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/J3RN.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":"2014-10-03T04:16:49.000Z","updated_at":"2016-02-18T23:54:49.000Z","dependencies_parsed_at":"2022-08-21T09:10:59.447Z","dependency_job_id":null,"html_url":"https://github.com/J3RN/votebot","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/J3RN%2Fvotebot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/J3RN%2Fvotebot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/J3RN%2Fvotebot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/J3RN%2Fvotebot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/J3RN","download_url":"https://codeload.github.com/J3RN/votebot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246652742,"owners_count":20812181,"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-26T21:20:33.507Z","updated_at":"2025-04-01T14:24:44.656Z","avatar_url":"https://github.com/J3RN.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Votebot\n## An IRC bot for voting.\n\nWhat does it do? It's counts votes. That is all.\n\n## Commands\n### Admin-Only\n- `.clear`: Clears all votes\n- `.whitelist \u003cnick\u003e`: Allows the user with the given nick to vote\n- `.join \u003cchannel\u003e`: The bot will join `channel`\n- `.part \u003cchannel\u003e`: The bot will leave `channel`\n- `.die`: The bot dies\n- `.vote-as [nick] [vote]`: Vote as another user\n- `.rm-vote-as [nick]`: Removes the given user's vote\n\n### Everybody\n- `.votes`: Shows the votes\n- `.vote \u003citem\u003e`: Adds a vote for `item`\n- `.rmvote`: Deletes the user's vote\n- `.count:` Says how many votes there are\n- `.whodunnit [item]`: Says who voted for that item\n- `.whosvoted`: Lists all the people who have voted\n- `.whathaveyoudone [nick]`: Says what the user voted for\n- `.rapsheet`: Lists every item and who has voted for it (one per message)\n\n### \"Responses\" (`\u003cnick\u003e: \u003cmessage\u003e`)\n- \"hello\": Replies \"Hello, \u003csender\u003e\"\n- \"beep\": Replies \"boop\"\n- \"help\": Lists summary of commands\n\n##Dependencies\n- Java 1.6 or greater (required for clojure)\n- Clojure\n- Leiningen\n- PostgreSQL\n\n## Setup\nTo get Votebot running, you're going to need to set up a PostgreSQL database\nfor it.\n\n`varchar` fields should be at least 30 characters long. Any longer than 30\ncharacters will not hurt, but additional spaces will be wasted.\n\nIt should:\n- Have two tables, `users` and `votes`\n  - `users` should have two fields:\n    - `id` (SERIAL PRIMARY KEY)\n    - `nick` (TEXT NOT NULL)\n  - `votes` should have three fields:\n    - `id` (SERIAL PRIMARY KEY)\n    - `users_id` (INTEGER NOT NULL)\n    - `item` (TEXT NOT NULL)\n    - `old` (BOOLEAN NOT NULL DEFAULT false)\n\n## Configuration\nThe bot requires a file named `settings.json`. I have included an example file called `settings-example.json`.\n\n- `\"bot_nick\"`: Bot's nick\n- `\"bot_pass\"`: Bot's password\n- `\"server\"`: IRC server to connect to\n- `\"port\"`: Port to connect to the IRC server on\n- `\"master\"`: The nick of the user to consider \"master\"\n- `\"channels\"`: An array of channels to join\n- `\"db-name\"`: PostgreSQL database name\n- `\"db-user\"`: User with access to the database\n- `\"db-pass\"`: Password for user to access the database\n\n## Running\nEnsure that postgreSQL is working correctly then in the votebot folder run: \n```bash\n lein run\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fj3rn%2Fvotebot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fj3rn%2Fvotebot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fj3rn%2Fvotebot/lists"}