mirror of
https://github.com/Ryujinx/ryuko-ng.git
synced 2025-08-04 06:51:00 +00:00
robocop: add robocop command
This commit is contained in:
parent
986695a464
commit
b67ddda4f1
|
@ -36,7 +36,7 @@ Based on https://gitlab.com/ao/dpybotbase
|
||||||
- [ ] Moderation: nickname
|
- [ ] Moderation: nickname
|
||||||
- [ ] Moderation: clear/purge
|
- [ ] Moderation: clear/purge
|
||||||
- [ ] Moderation: probate-unprobate
|
- [ ] Moderation: probate-unprobate
|
||||||
- [ ] Moderation: watch-unwatch
|
- [ ] Moderation: watch-unwatch (using log module from akbbot)
|
||||||
- [ ] Warns: warn
|
- [ ] Warns: warn
|
||||||
- [ ] Warns: delwarnid-delwarn
|
- [ ] Warns: delwarnid-delwarn
|
||||||
- [ ] Warns: listwarns-listwarnsid
|
- [ ] Warns: listwarns-listwarnsid
|
||||||
|
@ -46,6 +46,6 @@ Based on https://gitlab.com/ao/dpybotbase
|
||||||
- [x] .serr and .err
|
- [x] .serr and .err
|
||||||
- [x] Meme commands and pegaswitch (honestly the easiest part)
|
- [x] Meme commands and pegaswitch (honestly the easiest part)
|
||||||
- [x] source command
|
- [x] source command
|
||||||
- [ ] robocop command
|
- [x] robocop command
|
||||||
- [ ] eval and sh might need to be removed at end of development
|
- [ ] eval and sh might need to be removed at end of development
|
||||||
|
|
||||||
|
|
|
@ -35,6 +35,17 @@ class Basic:
|
||||||
config.source_url +
|
config.source_url +
|
||||||
". Serious PRs and issues welcome!")
|
". Serious PRs and issues welcome!")
|
||||||
|
|
||||||
|
@commands.command(aliases=["robocopng", "robocop-ng"])
|
||||||
|
async def robocop(self, ctx):
|
||||||
|
"""Shows a quick embed with bot info."""
|
||||||
|
embed = discord.Embed(title="Robocop-NG",
|
||||||
|
url=config.source_url,
|
||||||
|
description=config.embed_desc)
|
||||||
|
|
||||||
|
embed.set_thumbnail(url=self.bot.user.avatar_url)
|
||||||
|
|
||||||
|
await ctx.send(embed=embed)
|
||||||
|
|
||||||
@commands.command(aliases=['p'])
|
@commands.command(aliases=['p'])
|
||||||
async def ping(self, ctx):
|
async def ping(self, ctx):
|
||||||
"""Shows ping values to discord.
|
"""Shows ping values to discord.
|
||||||
|
|
|
@ -2,6 +2,12 @@
|
||||||
prefixes = [".", "!"]
|
prefixes = [".", "!"]
|
||||||
token = "token-goes-here"
|
token = "token-goes-here"
|
||||||
bot_description = "An attempt to rewrite the bot used in ReSwitched"
|
bot_description = "An attempt to rewrite the bot used in ReSwitched"
|
||||||
|
|
||||||
|
# The bot description to be used in .robocop embed
|
||||||
|
embed_desc = "Robocop-NG is developed by [Ave](https://github.com/aveao)"\
|
||||||
|
" and [tomGER](https://github.com/tumGER), and is a rewrite "\
|
||||||
|
"of Robocop.\nRobocop is based on Kurisu by 916253 and ihaveamac."
|
||||||
|
|
||||||
guild_whitelist = [
|
guild_whitelist = [
|
||||||
526372255052201993, # NotSwitched discord
|
526372255052201993, # NotSwitched discord
|
||||||
269333940928512010 # ReSwitched discord
|
269333940928512010 # ReSwitched discord
|
||||||
|
|
Loading…
Reference in a new issue