diff --git a/README.md b/README.md index d7e748a..10317cf 100755 --- a/README.md +++ b/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 diff --git a/cogs/basic.py b/cogs/basic.py index 6d1ed75..b74d94b 100644 --- a/cogs/basic.py +++ b/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. diff --git a/config.py.template b/config.py.template index 159db44..dca47dc 100644 --- a/config.py.template +++ b/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