{"id":16334815,"url":"https://github.com/ncfavier/bothendieck","last_synced_at":"2025-03-22T23:32:13.318Z","repository":{"id":64970406,"uuid":"553230322","full_name":"ncfavier/bothendieck","owner":"ncfavier","description":"An IRC bot","archived":false,"fork":false,"pushed_at":"2024-09-05T19:17:33.000Z","size":201,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-18T15:47:01.325Z","etag":null,"topics":["haskell","irc-bot"],"latest_commit_sha":null,"homepage":"","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ncfavier.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-17T23:18:46.000Z","updated_at":"2024-09-05T19:17:36.000Z","dependencies_parsed_at":"2023-02-17T10:45:39.120Z","dependency_job_id":"9c6f3c40-2c40-46ff-a4bf-9a4aa9d622e8","html_url":"https://github.com/ncfavier/bothendieck","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/ncfavier%2Fbothendieck","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncfavier%2Fbothendieck/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncfavier%2Fbothendieck/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncfavier%2Fbothendieck/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ncfavier","download_url":"https://codeload.github.com/ncfavier/bothendieck/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245036112,"owners_count":20550662,"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":["haskell","irc-bot"],"created_at":"2024-10-10T23:39:20.938Z","updated_at":"2025-03-22T23:32:13.010Z","avatar_url":"https://github.com/ncfavier.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"A simple IRC bot based on the [`irc-client`](https://hackage.haskell.org/package/irc-client) library.\n\n## Features\n\nEach module in [`src/Parts`](https://github.com/ncfavier/bothendieck/tree/main/src/Parts) defines a separate set of features: commands and message handlers. In the following, commands start with a `.`, but this prefix can be [configured](#usage).\n\n- [`URL`](https://github.com/ncfavier/bothendieck/blob/main/src/Parts/URL.hs) fetches and posts URL titles.\n- [`Eval`](https://github.com/ncfavier/bothendieck/blob/main/src/Parts/Eval.hs) provides evaluators for a bunch of languages using [qeval](https://github.com/ncfavier/qeval). Syntax: `LANG\u003e EXPRESSION`. Use `↵` (compose + return) to insert newlines.\n- [`Wikimedia`](https://github.com/ncfavier/bothendieck/blob/main/src/Parts/Wikimedia.hs) queries information from Wikimedia projects.\n  - `.wp ARTICLE` prints a summary of the given article on [Wikipedia](https://en.wikipedia.org), the free encyclopedia.\n  - `.wprandom [CATEGORY]` prints a link to a random Wikipedia article.\n  - `.wtrandom [CATEGORY|-l LANGUAGE]` prints a link to a random [Wiktionary](https://en.wiktionary.org) entry.\n- [`NLab`](https://github.com/ncfavier/bothendieck/blob/main/src/Parts/NLab.hs) queries information from the [nLab](https://ncatlab.org), a wiki for higher mathematics.\n  - `.nlab SEARCH` searches for a page and prints a link to the first result.\n  - `.nlabrandom [CATEGORY]` prints a random page.\n- [`MerriamWebster`](https://github.com/ncfavier/bothendieck/blob/main/src/Parts/MerriamWebster.hs) queries information from the [Merriam-Webster](https://www.merriam-webster.com) dictionary.\n  - `.d[ef[ine]] [-e ENTRY] WORD` queries a word's definition.\n  - `.etym[ology] [-e ENTRY] WORD` queries a word's etymology.\n- [`Translate`](https://github.com/ncfavier/bothendieck/blob/main/src/Parts/Translate.hs) provides translations via [Google Translate](https://translate.google.com/).\n  - `.tr[ans[late]] [[SOURCE]:[TARGET]] TEXT` translates `TEXT` from the `SOURCE` to the `TARGET` language, specified as [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166) codes. The default source language is auto-detected, and the default target language is English.\n- [`WolframAlpha`](https://github.com/ncfavier/bothendieck/blob/main/src/Parts/WolframAlpha.hs) queries [WolframAlpha](https://www.wolframalpha.com) for answers.\n  - `.(wa|wolfram[alpha]) QUERY` asks a general question.\n  - `.time PLACE` asks for the current time in `PLACE`.\n  - `.weather PLACE` asks for the current weather in `PLACE`.\n- [`Random`](https://github.com/ncfavier/bothendieck/blob/main/src/Parts/Random.hs) provides random quotes from various sources:\n  - `.compliment`: surrealist compliments from the [surrealist compliment generator](http://www.madsci.org/cgi-bin/lynn/jardin/SCG).\n  - `.lytt[le|on]`: entries from the [Lyttle Lytton contest](https://adamcadre.ac/lyttle/).\n\n## Usage\n\nWith a [flakes-enabled](https://nixos.wiki/wiki/Flakes#Enable_flakes) Nix:\n\n```console\n$ nix run github:ncfavier/bothendieck -- -c path/to/config.toml\n```\n\nSee [`config.sample.toml`](https://github.com/ncfavier/bothendieck/blob/main/config.sample.toml) for inspiration.\n\nYou can specify additional configuration files with the `-C` option. This is useful for separating secrets from the main configuration.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fncfavier%2Fbothendieck","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fncfavier%2Fbothendieck","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fncfavier%2Fbothendieck/lists"}