{"id":20518299,"url":"https://github.com/tricked-dev/texter-wasm","last_synced_at":"2025-03-05T23:42:35.092Z","repository":{"id":133033014,"uuid":"441550528","full_name":"Tricked-dev/texter-wasm","owner":"Tricked-dev","description":null,"archived":false,"fork":false,"pushed_at":"2021-12-24T20:54:36.000Z","size":33,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-16T10:17:14.238Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Tricked-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE_APACHE","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},"funding":{"github":"Tricked-dev","ko_fi":"tricked"}},"created_at":"2021-12-24T20:35:07.000Z","updated_at":"2022-04-01T19:17:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"889af801-bcfd-4356-bf68-ea580030f2a9","html_url":"https://github.com/Tricked-dev/texter-wasm","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/Tricked-dev%2Ftexter-wasm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tricked-dev%2Ftexter-wasm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tricked-dev%2Ftexter-wasm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tricked-dev%2Ftexter-wasm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tricked-dev","download_url":"https://codeload.github.com/Tricked-dev/texter-wasm/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242123200,"owners_count":20075344,"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-15T21:39:32.287Z","updated_at":"2025-03-05T23:42:35.087Z","avatar_url":"https://github.com/Tricked-dev.png","language":"Rust","readme":"# WasmCord - built plugins with rust\n\n## Installing\n\ninstall [WasmCord](https://github.com/Tricked-dev/WasmCord),\ngo to the wasmcord folder then into the wasmcord plugins folder ( if this doesn't exist restart discord ) then run `git clone -b dist https://github.com/Tricked-dev/texter-wasm`\n\n## Getting started\n\nRequirements [Rust](https://www.rust-lang.org/tools/install), [Wasmpack](https://rustwasm.github.io/wasm-pack/installer/), [NodeJs](https://nodejs.org/en/download/), Linux (someone please make a pr to add windows support) and [yarn](https://classic.yarnpkg.com/lang/en/docs/install/#debian-stable) (Optional)\n\n1. run `make` to build the project\n2. move the files inside the WasmCord/plugins/\u003cyourplugin\u003e/ folder\n3. test the plugin out\n\n## Creating a Command\n\nFirst add the command data to the plugin() functions.\n\n```rs\n#[wasm_bindgen]\npub fn plugin() -\u003e String {\n    let mock = Plugin {\n        command: \"cool\".to_owned(),\n        description: \"Mock people\".to_owned(),\n        usage: \"{c} [people to mock]\".to_owned(),\n    };\n    serde_json::to_string(\u0026vec![mock]).unwrap()\n}\n```\n\nThen make a function that has the name of the command,\n\n```rs\n#[wasm_bindgen]\npub fn cool() -\u003e String {\n    let response = Response {\n        send: true,\n        result: \"This is a response\".to_owned(),\n    };\n    serde_json::to_string(\u0026response).unwrap()\n}\n```\n\nBuild the project\n\n```sh\n$ make build\n```\n\nMove the files and your first wasm powered plugin is done\n","funding_links":["https://github.com/sponsors/Tricked-dev","https://ko-fi.com/tricked"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftricked-dev%2Ftexter-wasm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftricked-dev%2Ftexter-wasm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftricked-dev%2Ftexter-wasm/lists"}