robocop: add robocop command
This commit is contained in:
parent
986695a464
commit
b67ddda4f1
3 changed files with 19 additions and 2 deletions
|
@ -36,7 +36,7 @@ Based on https://gitlab.com/ao/dpybotbase
|
|||
- [ ] Moderation: nickname
|
||||
- [ ] Moderation: clear/purge
|
||||
- [ ] Moderation: probate-unprobate
|
||||
- [ ] Moderation: watch-unwatch
|
||||
- [ ] Moderation: watch-unwatch (using log module from akbbot)
|
||||
- [ ] Warns: warn
|
||||
- [ ] Warns: delwarnid-delwarn
|
||||
- [ ] Warns: listwarns-listwarnsid
|
||||
|
@ -46,6 +46,6 @@ Based on https://gitlab.com/ao/dpybotbase
|
|||
- [x] .serr and .err
|
||||
- [x] Meme commands and pegaswitch (honestly the easiest part)
|
||||
- [x] source command
|
||||
- [ ] robocop command
|
||||
- [x] robocop command
|
||||
- [ ] eval and sh might need to be removed at end of development
|
||||
|
||||
|
|
|
@ -35,6 +35,17 @@ class Basic:
|
|||
config.source_url +
|
||||
". 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'])
|
||||
async def ping(self, ctx):
|
||||
"""Shows ping values to discord.
|
||||
|
|
|
@ -2,6 +2,12 @@
|
|||
prefixes = [".", "!"]
|
||||
token = "token-goes-here"
|
||||
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 = [
|
||||
526372255052201993, # NotSwitched discord
|
||||
269333940928512010 # ReSwitched discord
|
||||
|
|
Loading…
Reference in a new issue