The underscore prefix on the provided variables is intended to help prevent shadowing when writing large blocks of code within the command. If you decide that you don't want the prefix, you can disable it by setting the onami_NO_UNDERSCORE environment variable to true.
Each Python command is individually scoped. That means variables you create won't be retained in later invocations. You can use onami retain on to change this behavior and retain variables, and onami retain off if you change your mind later.
> onami [dis|disassemble]
This command compiles Python code in an asynchronous context, and then disassembles the resulting function into Python bytecode in the style of dis.dis.
This allows you to quickly and easily determine the bytecode that results from a given expression or piece of code. The code itself is not actually executed.
> onami [sh|shell]
The shell command executes commands within your system shell.
If you're on Linux and are using a custom shell, onami will obey the SHELL environment variable, otherwise, it will use /bin/bash. On Windows, onami will use PowerShell if it's detected, otherwise, it will use Command Prompt.
The results from the commands you pass in are returned through a paginator interface live as the command runs. If you need to stop a command, you can press the stop button reaction, or use oni cancel.
The execution will terminate automatically if no output is produced for 120 seconds.
> onami git
> onami pip
These commands act as shortcuts to the shell command, so you can save typing a word if you use these frequently.
> onami [load|reload] [extensions...]
> onami unload [extensions...]
These commands load, reload, or unload extensions on your bot.
You can reload onami itself with oni reload onami. oni reload ~ will reload all extensions on your bot.
You can load, reload, or unload multiple extensions at once: oni reload cogs.one cogs.two
> onami shutdown
This command gracefully shuts down your bot.
> onami rtt
This command calculates Round-Trip Time for your bot to the API. It does this by calculating response time samples, so you can tell if your bot is being slow or not.
> onami cat
This command reads a file from your file system, automatically detecting encoding and (if applicable) highlighting.
You can use this to read things like bot logs or source files in your project.
> onami curl
This command reads text from a URL and attempts to detect encoding and language, similar to oni cat.
You can use this to display contents of files online, for instance, the message.txt files created when a message is too long, or raw files from paste sites.
> onami exec [member and/or channel...]
> onami debug
> onami repeat
These commands serve as command control for other commands.
onami exec allows you to execute a command as another user, in another channel, or both. Using aliases with a postfix exclamation mark (such as oni exec! ...) executes the command bypassing checks and cooldowns.
onami debug executes a command with an exception wrapper and a timer. This allows you to quickly get feedback on reproducable command errors and slowdowns.
onami repeat repeats a command a number of times.
> onami permtrace
[targets...]
This command allows you to investigate the source of expressed permissions in a given channel. Targets can be either a member, or a list of roles (to simulate a member with those roles).
It will read all of the guild permissions and channel overwrites for the given member or roles in the channel, and provide a breakdown containing whether the permission is granted, and the most fundamental reason why.
Installing development versions
If you'd like to test the latest versions of onami, you can do so by downloading from the git hosts instead of from PyPI.
Please note that the new 2020 dependency resolver now no longer discounts git package sources from reinstall prevention, which means that if you are installing the onami development version multiple times within the same version target you may run into pip just discarding the update.
If you run into such a problem, you can force onami to be reinstalled like this:
Add sync command to update application commands (updating them),because it can help us to update codes without rebooting so nextcord can sync again the commands or running an eval command to sync ,adding that command in onami will help us a lot for development.
🔡 Renovate has detected a custom config for this PR. Feel free to ask for help if you have any doubts and would like it reviewed.
Important: Now that this branch is edited, Renovate can't rebase it from the base branch any more. If you make changes to the base branch that could impact this onboarding PR, please merge them manually.
What to Expect
With your current configuration, Renovate will create 2 Pull Requests:
❓ Got questions? Check out Renovate's Docs, particularly the Getting Started section.
If you need any further assistance then you can also request help here.
This PR has been generated by Mend Renovate. View repository job log here.
opened by renovate[bot] 0
Releases(2.5.0)
2.5.0(Nov 28, 2022)
What's Changed
chore(setup): attempt at making versioning work by @toolifelesstocode in https://github.com/VincentRPS/Onami/pull/5
Full Changelog: https://github.com/VincentRPS/Onami/compare/2.4.0...2.5.0