Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
6352c2c
WIP
Cpt-Dingus Jan 7, 2024
3d20e15
WIP: Added file
Cpt-Dingus Jan 7, 2024
6239413
wip push, for debug online
Cpt-Dingus Feb 12, 2024
df4b460
Added config options
Cpt-Dingus Feb 13, 2024
0ec62f7
Finishing up
Cpt-Dingus Feb 17, 2024
615b351
Ironed permission issues out, fixed bot restarting
Cpt-Dingus Feb 17, 2024
e4a434b
Got rid of the TODO. Oops
Cpt-Dingus Feb 17, 2024
2bd9a06
Codefactor fixes
Cpt-Dingus Feb 17, 2024
30777f1
Fixed pylint issues
Cpt-Dingus Feb 17, 2024
cf1fd1e
Merge branch 'main' into modmail_poc
Cpt-Dingus Feb 17, 2024
4195194
Fixed grammar in last comment
Cpt-Dingus Feb 17, 2024
8a75886
Fixed review stuff, added type and super call for init, made consiste…
Cpt-Dingus Feb 17, 2024
8afe978
updated black
Cpt-Dingus Feb 17, 2024
da4a228
Merge remote-tracking branch 'refs/remotes/origin/main' into modmail_poc
Cpt-Dingus Apr 6, 2024
ed45339
review stuff
Cpt-Dingus Apr 7, 2024
affa813
Pylint
Cpt-Dingus Apr 7, 2024
0de7e4a
More review stuff
Cpt-Dingus Apr 12, 2024
246e204
Made error more verbose
Cpt-Dingus Apr 12, 2024
65e8555
pylint
Cpt-Dingus Apr 12, 2024
8113fd2
Further review stuff
Cpt-Dingus Apr 12, 2024
cb2a208
Added protection for newlines without spaces
Cpt-Dingus Apr 12, 2024
4fe3bc9
Fixed some handling when the member leaves the guild
Cpt-Dingus Apr 12, 2024
0409cf1
Added some further automatic handling, selfcontact
Cpt-Dingus Apr 12, 2024
4b288b2
pylint
Cpt-Dingus Apr 12, 2024
bc87be1
fixed confirmation issue
Cpt-Dingus Apr 12, 2024
6ab35ff
DEDUPLICATES ROLES.
Cpt-Dingus Apr 12, 2024
2725271
Last bugs squashed
Cpt-Dingus Apr 12, 2024
a10b1fe
more bugs
Cpt-Dingus Apr 12, 2024
69cd831
Added a comment
Cpt-Dingus Apr 12, 2024
f2947f7
Removed erroneous space
Cpt-Dingus Apr 12, 2024
cf12977
Handling for failed created_thread
Cpt-Dingus Apr 12, 2024
9b2c113
Bots can't talk to each other now. Binary is dead
Cpt-Dingus Apr 12, 2024
bd12b7c
Sticker protection
Cpt-Dingus Apr 12, 2024
5d58a71
tiny bugs
Cpt-Dingus Apr 13, 2024
02f956f
Merge branch 'main' into modmail_poc
ajax146 Apr 13, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions config.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ bot_config:
disabled_extensions: ["kanye"]
default_prefix: "."
global_alerts_channel: ""
modmail_config:
enable_modmail: False
disable_thread_creation: False
modmail_auth_token:
modmail_prefix:
modmail_guild:
modmail_forum_channel:
modmail_log_channel:
database:
postgres:
user:
Expand Down
7 changes: 5 additions & 2 deletions techsupport_bot/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
from discord import app_commands
from discord.ext import commands

loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)


class TechSupportBot(commands.Bot):
"""The main bot object."""
Expand Down Expand Up @@ -957,10 +960,10 @@ async def start_irc(self):
bool: True if the connection was successful, False if it was not
"""
irc_config = getattr(self.file_config.api, "irc")
loop = asyncio.get_running_loop()
main_loop = asyncio.get_running_loop()

irc_bot = ircrelay.IRCBot(
loop=loop,
loop=main_loop,
server=irc_config.server,
port=irc_config.port,
channels=irc_config.channels,
Expand Down
Loading