From 80f6206fb012383496a250e3fe6b5c02e32d29d4 Mon Sep 17 00:00:00 2001 From: JMcB Date: Sun, 31 Oct 2021 12:11:54 +0000 Subject: [PATCH] Add to bot list --- snakeboxed/__init__.py | 4 +--- snakeboxed/cogs/snakeboxed_info.py | 10 ++++++++++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/snakeboxed/__init__.py b/snakeboxed/__init__.py index e685036..58b3f62 100644 --- a/snakeboxed/__init__.py +++ b/snakeboxed/__init__.py @@ -21,14 +21,12 @@ # stackoverflow error search # todo: allow .py text files as eval input # todo: allow message links as eval input -# todo: lazy log formatting? ehhhh # todo: create privileged eval command for owner only # todo: docker image # todo: setup.py -# todo: list on discord bot websites -__version__ = '1.6.5' +__version__ = '1.6.6' CONFIG_PATH = Path('config.toml') diff --git a/snakeboxed/cogs/snakeboxed_info.py b/snakeboxed/cogs/snakeboxed_info.py index ebbe395..cdde814 100644 --- a/snakeboxed/cogs/snakeboxed_info.py +++ b/snakeboxed/cogs/snakeboxed_info.py @@ -8,6 +8,7 @@ GITHUB_LINK = 'https://github.com/JMcB17/snakeboxed' CREATOR_DISCORD_NAME = 'JMcB#7918' +BOT_LIST_NAME = 'snakeboxed' BOT_PERMISSIONS = { 'read_messages': True, 'send_messages': True, @@ -51,6 +52,15 @@ async def send_bug_report_links(self, ctx: commands.Context): ) return await ctx.send(bug_report_msg) + @commands.command() + async def vote(self, ctx: commands.Context): + """Upvote the bot. Completely optional. + + Not on top.gg because they try to make you watch ads to vote. + Might take it off discordbotlist.com because they accept crypto related bots. + """ + return await ctx.send(f'https://discordbotlist.com/bots/{BOT_LIST_NAME}/upvote') + @commands.command(name='version', aliases=['V']) async def send_version_number(self, ctx: commands.Context): """Send the current version number for this bot."""