{"repo":"nyxx-discord/nyxx_commands","free":true,"listed":false,"github":"https://github.com/nyxx-discord/nyxx_commands","clone":"git clone https://github.com/nyxx-discord/nyxx_commands.git","description":"A framework for easily creating slash commands and text commands for Discord using the nyxx library.","language":"Dart","stars":17,"topics":["nyxx","discord","bots","commands"],"license":"Apache-2.0","category":"chat-messaging","readme_excerpt":"nyxx commands nyxx commands is a framework for easily creating slash commands and text commands for Discord using the nyxx library. Inspired by discord.py's commands extension. Need help with nyxx commands? Join our Discord server and ask in the #nyxx commands channel. Features - Easy command creation - Automatic compatibility with Discord slash commands - Compatibility with the nyxx library - Argument parsing Compiling nyxx commands If you compile a bot using nyxx commands with dart compile exe , you might get an error you hadn't seen during development: This is because nyxx commands uses dart:mirrors to load the arguments for your commands. During development this is fine but this functionality breaks when compiled because dart:mirrors cannot be used in compiled Dart programs. To mitigate this, nyxx commands provides a script that compiles your code for you and loads this information for nyxx commands to use. To use it, you must first wrap all your command callbacks in id and give each function a unique id. For example, this chat command: must have its callback wrapped with id like so: You can also use a named function, provided that function is a top-level function declared in the same file: If you forget to add the id to a function, you'll get an error similar to this one: Once you've added id to all your commands, use the nyxx commands:compile script to compile your program. See dart run nyxx commands:compile --help for a list of options. If you use the --no-compile flag","default_branch":null,"files":null,"tree":[],"storefront":"/r/nyxx-discord","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/nyxx-discord/nyxx_commands/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}