Skip to content

Commit

Permalink
Add command for getting version number, bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
irismessage committed Oct 22, 2021
1 parent 1fa891b commit 785d414
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
# todo: settings system for global hosting


__version__ = '1.2.0'
__version__ = '1.3.0'


ESCAPE_REGEX = re.compile('[`\u202E\u200B]{3,}')
Expand Down Expand Up @@ -111,7 +111,7 @@ async def send_github_link(self, ctx: commands.Context):

@commands.command(name='bugs', aliases=['bug', 'report-bug', 'report-bugs', 'bug-report'])
async def send_bug_report_links(self, ctx: commands.Context):
"""Send the GitHub link for this bot's source code."""
"""Send info on reporting bugs."""
bug_report_msg = (
'Message me on Discord: \n'
'JMcB#7918\n '
Expand All @@ -120,6 +120,11 @@ async def send_bug_report_links(self, ctx: commands.Context):
)
return await ctx.send(bug_report_msg)

@commands.command(name='version', aliases=['V'])
async def send_version_number(self, ctx: commands.Context):
"""Send the current version number for this bot."""
return await ctx.send(__version__)

@commands.command(name='prefix', aliases=['prefixes', 'bot-prefix', 'bot-prefixes'])
async def send_bot_prefixes(self, ctx: commands.Context):
"""Send the command prefixes for this bot.
Expand Down

0 comments on commit 785d414

Please sign in to comment.