Skip to content

Commit

Permalink
[modtools] Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Laogeodritt committed Oct 26, 2020
1 parent 9c0f548 commit 35ad5ea
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions config.example.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@
},
"modtools": {
"notif_role": "Name of role used to send notifications to all mods",
"channel_mod": "channel ID for notifications to mods (for .report)",
"distinguish_map": {
"mod-role1": "distinguish-role1",
"mod-role2": "distinguish-role2"
Expand Down
2 changes: 1 addition & 1 deletion kaztron/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from .scheduler import Scheduler, TaskInstance, task

__release__ = "2.4" # release stream, usually major.minor only
__version__ = "2.4.0"
__version__ = "2.4.1"

bot_info = {
"version": __version__,
Expand Down
2 changes: 2 additions & 0 deletions kaztron/cog/modtools.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,13 @@ class ModTools(KazCog):
def __init__(self, bot):
super().__init__(bot, 'modtools', ModToolsConfig)
self.cog_config.set_defaults(distinguish_map={}, wb_images=tuple())
self.cog_config.set_converters('channel_mod', self.get_channel, None)
self.cog_modnotes: ModNotes = None

async def on_ready(self):
await super().on_ready()
self.cog_modnotes = self.get_cog_dependency(ModNotes.__name__)
_ = self.cog_config.channel_mod # validate this channel exists

@commands.command(pass_context=True)
@mod_only()
Expand Down

0 comments on commit 35ad5ea

Please sign in to comment.