robocop: add robocop command

This commit is contained in:
Ave Ozkal 2018-12-23 20:27:51 +03:00
parent 986695a464
commit b67ddda4f1
No known key found for this signature in database
GPG key ID: 09356ABAA42C842B
3 changed files with 19 additions and 2 deletions

View file

@ -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

View file

@ -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.

View file

@ -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