From 2e28cab8e2aedf3cac004c79e7c464d5c8208b10 Mon Sep 17 00:00:00 2001 From: Adriene Hutchins Date: Tue, 3 Mar 2020 22:06:46 -0500 Subject: [PATCH] Changes to tacibase mean this --- config-example.json | 8 +++++++- extensions/core.py | 8 +++++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/config-example.json b/config-example.json index 6727f9d..078d309 100644 --- a/config-example.json +++ b/config-example.json @@ -1,6 +1,8 @@ { "VERSION": "x.x type", "DESCRIPTION": "a basic base for bots, designed by taciturasa.", + "REPO": "", + "SERVER": "", "MAINTENANCE": false, "TOKEN": "", "DBL": "", @@ -12,6 +14,10 @@ "PREFIXLESS_DMS": true, "MENTION_ASSIST": true, "CUSTOM_HELP": true, + "INFO_HOOK": "", + "WARN_HOOK": "", + "ERROR_HOOK": "", + "DEBUG_HOOK": "", "PERMS": null, "BLOCKED": [] -} \ No newline at end of file +} diff --git a/extensions/core.py b/extensions/core.py index bd45b30..016245f 100644 --- a/extensions/core.py +++ b/extensions/core.py @@ -60,8 +60,10 @@ class Core(commands.Cog): msg = f"__**{self.bot.user.name}**__ - _{self.bot.description}_\n\n" msg += f"This instance by **{self.bot.appinfo.owner}.**\n\n" - msg += "**Source Code:** __\n" - msg += "**Support Server:** __\n\n" + if self.bot.config['REPO']: + msg += f"**Source Code:** _<{self.bot.config['REPO']}>_\n" + if self.bot.config['SERVER:']: + msg += f"**Support Server:** _<{self.bot.config['SERVER']}>_\n\n" msg += "_Note: Please attempt to contact the hoster of any separate instances before this server._\n" msg += f"_See **{ctx.prefix}**`help` for help, `invite` to add the bot, and `stats` for statistics._" @@ -218,7 +220,7 @@ Number of extensions present: {len(ctx.bot.cogs)} await ctx.guild.leave() else: await ctx.send( - "**Can't leave!** _This channel is not inside a guild_") + "**Can't leave!** _This channel is not inside a guild._") def cog_unload(self): self.bot.help_command = self._original_help_command