{"id":24979592,"url":"https://github.com/itsme-to/zyno-bot-addons","last_synced_at":"2025-03-29T09:27:29.871Z","repository":{"id":172304772,"uuid":"649117407","full_name":"itsme-to/Zyno-Bot-addons","owner":"itsme-to","description":"An addon library for Zyno Bot","archived":false,"fork":false,"pushed_at":"2024-08-12T16:48:37.000Z","size":507,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-28T23:45:20.885Z","etag":null,"topics":["addon","addons","bot","discord","discord-bot","zyno","zyno-bot"],"latest_commit_sha":null,"homepage":"https://zyno-bot-addons.luukdev.nl","language":"JavaScript","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/itsme-to.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":"2023-06-03T20:46:35.000Z","updated_at":"2024-12-23T22:21:36.000Z","dependencies_parsed_at":"2024-03-28T17:36:36.968Z","dependency_job_id":"28337c3c-95fc-4489-9b19-b294a1510837","html_url":"https://github.com/itsme-to/Zyno-Bot-addons","commit_stats":null,"previous_names":["luuk-dev/zyno-bot-addons","youseemerunning2/zyno-bot-addons","itsme-to/zyno-bot-addons"],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsme-to%2FZyno-Bot-addons","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsme-to%2FZyno-Bot-addons/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsme-to%2FZyno-Bot-addons/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsme-to%2FZyno-Bot-addons/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itsme-to","download_url":"https://codeload.github.com/itsme-to/Zyno-Bot-addons/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246164592,"owners_count":20733835,"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":["addon","addons","bot","discord","discord-bot","zyno","zyno-bot"],"created_at":"2025-02-04T01:19:50.598Z","updated_at":"2025-03-29T09:27:29.834Z","avatar_url":"https://github.com/itsme-to.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Zyno Bot addons\nZyno Bot provides a library, based on the Discord.js library, which allows you to easily create addons for your bot. This library is by default installed on all the bots.\n\n\u003e The Zyno Bot addons library is supported for Zyno Bot version 1.6.0 and higher\n\n## Creating an addon\nAddons can easily be created. The library has an `Addon` class which creates a new addon. To create an addon, you are required to give your addon a name, add a description which tells what your addon does, add a version, provide an author and add which permissions your addon needs. Before the addon is created, the bot will ask the owner of the bot whether to allow the addon or not. When the addon was allowed by the bot's owner, the addon will start. It's also important to have a good file routing. Your addon must be uploaded in the `/addons/` folder as a folder. Only the file inside that folder named `index.js` will be executed by the bot. Any additional files which should be executed, must be executed in the `index.js` file of your addon.\n\nExample of an addon:\n\nFile routing: `/home/container/addons/My cool new addon/index.js`\n```js\nconst addons = require('zyno-bot-addons');\n\nconst addon = new addons.Addon({\n    name: 'My cool new addon', // The name of the addon\n    description: 'This is a test addon to demonstrate how the addon system works', // The description of what the addon does\n    version: '1.0.0', // The version of the addon\n    author: 'Luuk', // The author of the addon\n    bitfield: [addons.bitfield.COMMANDS] // An array of the permissions it needs\n});\n\naddon.once('ready', () =\u003e {\n    // The addon will now start\n\n    const commandBuilder = addons.CommandBuilder()\n    .setName('mycommand')\n    .setDescription('This is a command created by the addon system');\n\n    // A new command will be added named 'mycommand'\n    addon.createCommand(commandBuilder).then(cmd =\u003e {\n        cmd.on('execute', command =\u003e {\n            // When the command gets executed, it will respond with the text 'Hello world!'\n            command.reply('Hello world!').catch(console.log);\n        });\n    }).catch(err =\u003e {\n        console.log(`There was an error while adding the command:`, err);\n    })\n});\n```\n\n## Full documentation\nYou can find all of our documentation herre, [https://docs.drakodevelopment.net/our-bots/zyno-bot/addons](https://docs.drakodevelopment.net/our-bots/zyno-bot/addons)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitsme-to%2Fzyno-bot-addons","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitsme-to%2Fzyno-bot-addons","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitsme-to%2Fzyno-bot-addons/lists"}