Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/digiduncan/digisudo
A sudo command for discord.py.
https://github.com/digiduncan/digisudo
Last synced: about 1 month ago
JSON representation
A sudo command for discord.py.
- Host: GitHub
- URL: https://github.com/digiduncan/digisudo
- Owner: DigiDuncan
- License: gpl-3.0
- Created: 2020-01-29T17:10:42.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-01-29T17:40:13.000Z (almost 5 years ago)
- Last Synced: 2024-10-22T23:47:38.854Z (2 months ago)
- Language: Python
- Size: 15.6 KB
- Stars: 0
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DigiSudo
DigiSudo is a cog for discord.py bots that adds one command, `sudo`, which allows the command runner to run any other command the bot has a different user.The command syntax is `sudo @user [command...]`.
By default, the command can only be run by either the owner of the bot (as in, the person who controls the bot's token) or all the members of the team that owns the bot. This restriction can be removed by ommiting the `@commands.is_owner()` check on line 15 of `sudo.py` if you are adding this file directly into your bot, though this is **not reccomended.** The restrcition currently can not be removed if you install the cog via `pip`.
The cog can be installed with:
`pip install git+git://github.com/DigiDuncan/DigiSudo.git`
Once it is installed, any discord.py can load it with:
`bot.load_extension("sudo")`