{"id":19444282,"url":"https://github.com/cyteon/discord_gleam","last_synced_at":"2025-04-25T00:33:02.435Z","repository":{"id":248505602,"uuid":"828908735","full_name":"Cyteon/discord_gleam","owner":"Cyteon","description":"A library to create discord bots in gleam","archived":false,"fork":false,"pushed_at":"2025-04-14T07:16:43.000Z","size":78,"stargazers_count":23,"open_issues_count":1,"forks_count":8,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-14T08:31:27.947Z","etag":null,"topics":["discord","discord-bot","gleam","gleam-lang"],"latest_commit_sha":null,"homepage":"","language":"Gleam","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/Cyteon.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,"zenodo":null}},"created_at":"2024-07-15T11:20:37.000Z","updated_at":"2025-04-14T07:16:46.000Z","dependencies_parsed_at":"2025-04-14T08:25:22.866Z","dependency_job_id":"b0be5cec-1917-4770-9633-df08db6122ad","html_url":"https://github.com/Cyteon/discord_gleam","commit_stats":null,"previous_names":["cyteon/discord_gleam"],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cyteon%2Fdiscord_gleam","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cyteon%2Fdiscord_gleam/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cyteon%2Fdiscord_gleam/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cyteon%2Fdiscord_gleam/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Cyteon","download_url":"https://codeload.github.com/Cyteon/discord_gleam/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250733610,"owners_count":21478401,"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":["discord","discord-bot","gleam","gleam-lang"],"created_at":"2024-11-10T16:06:24.300Z","updated_at":"2025-04-25T00:33:02.428Z","avatar_url":"https://github.com/Cyteon.png","language":"Gleam","funding_links":[],"categories":["Libraries"],"sub_categories":["Gleam"],"readme":"# discord_gleam\n\n[![Package Version](https://img.shields.io/hexpm/v/discord_gleam)](https://hex.pm/packages/discord_gleam)\n[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/discord_gleam/)\n\n```sh\ngleam add discord_gleam\n```\n\n```gleam\nimport discord_gleam\nimport discord_gleam/event_handler\nimport discord_gleam/types/message\nimport discord_gleam/discord/intents\nimport gleam/list\nimport gleam/string\nimport logging\n\npub fn main() {\n  logging.configure()\n  logging.set_level(logging.Info)\n\n  let bot = discord_gleam.bot(\"YOUR TOKEN\", \"YOUR CLIENT ID\", intents.Intents(message_content: True, guild_messages: True))\n\n  discord_gleam.run(bot, [event_handler])\n}\n\nfn event_handler(bot, packet: event_handler.Packet) {\n  case packet {\n    event_handler.MessagePacket(message) -\u003e {\n      logging.log(logging.Info, \"Message: \" \u003c\u003e message.d.content)\n      case message.d.content {\n        \"!ping\" -\u003e {\n          discord_gleam.send_message(bot, message.d.channel_id, \"Pong!\", [])\n        }\n        _ -\u003e Nil\n      }\n    }\n    _ -\u003e Nil\n  }\n}\n```\n\nFurther documentation can be found at \u003chttps://hexdocs.pm/discord_gleam\u003e.\n\n## Development\n\n```sh\ngleam test  # Run the tests\n```\n\n## Features:\n\n| Feature              | Status |\n| -------------------- | ------ |\n| Basic events         | ✅     |\n| More events          | 🔨     |\n| Sending messages     | ✅     |\n| Ban/kick             | ✅     |\n| Deleting messages    | ✅     |\n| Embeds               | ✅     |\n| Basic Slash commands | ✅     |\n| Messge Cache         | ✅     |\n| Intents              | 🔨     |\n\n✅ - Done | 🔨 - In Progress | 📆 - Planned | ❌ - Not Planned\n\n## Supported events:\n\n- READY\n- MESSAGE_CREATE\n- MESSAGE_DELETE\n- INTERACTION_CREATE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyteon%2Fdiscord_gleam","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcyteon%2Fdiscord_gleam","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyteon%2Fdiscord_gleam/lists"}