File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77import discord
88from discord .ext import commands
99
10+ from emoji import UNICODE_EMOJI
11+
1012from src .utils import user_only
1113
1214
@@ -109,6 +111,16 @@ async def apod(self, ctx):
109111
110112 await ctx .send (embed = embed )
111113
114+
115+ class Confession (commands .Cog ):
116+ """Cog dedicated to the confession feature."""
117+
118+ def __init__ (self , bot , config ):
119+ self .bot = bot
120+ self .config = config
121+
122+ self .confession_queue = {}
123+
112124 @commands .Cog .listener ()
113125 @user_only ()
114126 async def on_message (self , message ):
Original file line number Diff line number Diff line change 88
99from cogs .omega import Omega
1010from cogs .moderation import Moderation
11- from cogs .fun import Fun
11+ from cogs .fun import Fun , Confession
1212from logs .logger import logger
1313
1414
@@ -25,6 +25,10 @@ class Bot(commands.Bot):
2525 Omega
2626 )
2727
28+ optionals = {
29+ Confession : config ["CONFESSION" ]["ENABLED" ]
30+ }
31+
2832 def __init__ (self ):
2933 super ().__init__ (config ["PREFIX" ])
3034
@@ -62,6 +66,10 @@ def run(self):
6266 for cog in self .extensions :
6367 self .add_cog (cog (self , config ))
6468
69+ for cog , requirement in self .optionals .items ():
70+ if requirement :
71+ self .add_cog (cog (self , config ))
72+
6573 super ().run (self .token )
6674
6775
You can’t perform that action at this time.
0 commit comments