{"id":18596050,"url":"https://github.com/losuler/futaba","last_synced_at":"2025-11-02T05:30:35.644Z","repository":{"id":133523257,"uuid":"257340190","full_name":"losuler/futaba","owner":"losuler","description":"A silly Discord bot for a friend.","archived":false,"fork":false,"pushed_at":"2023-03-07T02:11:17.000Z","size":522,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-08T22:07:07.196Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/losuler.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2020-04-20T16:27:24.000Z","updated_at":"2022-04-20T11:20:37.000Z","dependencies_parsed_at":"2023-07-10T01:33:04.121Z","dependency_job_id":null,"html_url":"https://github.com/losuler/futaba","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/losuler%2Ffutaba","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/losuler%2Ffutaba/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/losuler%2Ffutaba/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/losuler%2Ffutaba/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/losuler","download_url":"https://codeload.github.com/losuler/futaba/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239379324,"owners_count":19628684,"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-11-07T01:22:55.143Z","updated_at":"2025-02-17T23:09:40.627Z","avatar_url":"https://github.com/losuler.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/losuler/futaba\"\u003e\n    \u003cimg src=\"img/futaba.png\" alt=\"logo\" width=\"150\" height=\"150\"\u003e\n  \u003c/a\u003e\n\n  \u003cp align=\"center\"\u003e\n    \u003ch3 align=\"center\"\u003eFutaba\u003c/h3\u003e\n    \u003cp align=\"center\"\u003e\n      A silly Discord bot for a friend.\n    \u003c/p\u003e\n  \u003c/p\u003e\n\u003c/p\u003e\n\u003c/div\u003e\n\n## Commands\n\n- Show the current time of a user.\n\n    ```\n    t.user, time.user\n    ```\n\n- Set the timezone of a user (`admin` must be set or the user themself to call)\n\n    ```\n    s.user america/chicago, set.user america/chicago\n    ```\n\n- Assign or un-assign a role that mutes a user (`admin` must be set to `true` to call).\n\n    ```\n    m.user, mute.user\n    !m.user, unmute.user\n    ```\n\n- Add all users to configuration file (`admin` must be set to `true` to call).\n\n    ```\n    t.update, time.update\n    ```\n\n## Configuration\n\nThe configuration file `config.yml` has three main sections (see `config.yml.example`).\n\nThe `token` is the token for the bot (see [create a bot](#create-a-bot)).\n\n```yaml\ndiscord:\n    token: 1234567890\n```\n\nThe `muteid` is the ID for the role that mutes a user (must be created manually).\n\n```yaml\nroles:\n    muteid: 1234567890\n```\n\nEach list entry refers to a user on the server.\n\n- On Linux you can use `timedatectl list-timezones` to find the correct timezone.\n- `admin` allows that specific user to call commands that require it (see [commands](#commands)).\n\n```yaml\nusers:\n    - username: name\n      userid: 1234567890\n      timezone: America/Los_Angeles\n      nickname: nick\n      admin: false\n```\n\n## Create a bot\n\n1. Browse to the [Discord Developer Portal](https://discordapp.com/developers/applications).\n\n2. Click `New Application`.\n\n3. Provide a name (can be different to the name of the bot itself).\n\n4. Click `Bot` on the left side menu, then click `Add Bot`.\n\n5. Under `Token`, click `Click to Reveal Token` to reveal the bot's token (used in `config.yml`).\n\n6. In the left side menu, click `Bot`.\n\n7. Under `Privileged Gateway Intents`, enable `Presence Intent` and `Server Members Intent`.\n\n## Add a bot to a server\n\n1. Replace `CLIENT_ID` with the client ID of the application (navigate to `General Information` \non the left side menu).\n\n    ```\n    https://discordapp.com/oauth2/authorize?\u0026client_id=CLIENT_ID\u0026scope=bot\u0026permissions=0\n    ```\n\n2. Select your server from the drop down menu.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flosuler%2Ffutaba","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flosuler%2Ffutaba","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flosuler%2Ffutaba/lists"}