File tree Expand file tree Collapse file tree 6 files changed +1461
-4
lines changed Expand file tree Collapse file tree 6 files changed +1461
-4
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,14 @@ bot_config:
66 disabled_extensions : ["kanye"]
77 default_prefix : " ."
88 global_alerts_channel : " "
9+ modmail_config :
10+ enable_modmail : False
11+ disable_thread_creation : False
12+ modmail_auth_token :
13+ modmail_prefix :
14+ modmail_guild :
15+ modmail_forum_channel :
16+ modmail_log_channel :
917database :
1018 postgres :
1119 user :
Original file line number Diff line number Diff line change 2222from discord import app_commands
2323from discord .ext import commands
2424
25+ loop = asyncio .new_event_loop ()
26+ asyncio .set_event_loop (loop )
27+
2528
2629class TechSupportBot (commands .Bot ):
2730 """The main bot object."""
@@ -957,10 +960,10 @@ async def start_irc(self):
957960 bool: True if the connection was successful, False if it was not
958961 """
959962 irc_config = getattr (self .file_config .api , "irc" )
960- loop = asyncio .get_running_loop ()
963+ main_loop = asyncio .get_running_loop ()
961964
962965 irc_bot = ircrelay .IRCBot (
963- loop = loop ,
966+ loop = main_loop ,
964967 server = irc_config .server ,
965968 port = irc_config .port ,
966969 channels = irc_config .channels ,
You can’t perform that action at this time.
0 commit comments