Browse Source

robocop: add robocop command

main
Ave Ozkal 3 years ago
parent
commit
663445d8c0
  1. 4
      README.md
  2. 11
      cogs/basic.py
  3. 6
      config.py.template

4
README.md

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

11
cogs/basic.py

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

6
config.py.template

@ -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…
Cancel
Save