Bläddra i källkod

Starting CrosspostCog

tags/1.0
Rocketsoup 4 år sedan
förälder
incheckning
9ef3894e7c
6 ändrade filer med 7 tillägg och 4 borttagningar
  1. 1
    1
      cogs/configcog.py
  2. 2
    0
      cogs/crosspostcog.py
  3. 1
    1
      cogs/generalcog.py
  4. 1
    1
      cogs/joinraidcog.py
  5. 1
    1
      config.py.sample
  6. 1
    0
      rocketbot.py

+ 1
- 1
cogs/configcog.py Visa fil

@@ -8,7 +8,7 @@ class ConfigCog(BaseCog):
8 8
 	Cog for handling general bot configuration.
9 9
 	"""
10 10
 	def __init__(self, bot):
11
-		self.bot = bot
11
+		super().__init__(bot)
12 12
 
13 13
 	@commands.group(
14 14
 		brief='Manages general bot configuration'

+ 2
- 0
cogs/crosspostcog.py Visa fil

@@ -0,0 +1,2 @@
1
+from cogs.basecog import BaseCog
2
+

+ 1
- 1
cogs/generalcog.py Visa fil

@@ -4,7 +4,7 @@ from storage import StateKey, Storage
4 4
 
5 5
 class GeneralCog(BaseCog):
6 6
 	def __init__(self, bot: commands.Bot):
7
-		self.bot = bot
7
+		super().__init__(bot)
8 8
 		self.is_connected = False
9 9
 		self.is_ready = False
10 10
 

+ 1
- 1
cogs/joinraidcog.py Visa fil

@@ -244,7 +244,7 @@ class JoinRaidCog(BaseCog):
244 244
     STATE_KEY_ENABLED = 'joinraid_enabled'
245 245
 
246 246
     def __init__(self, bot):
247
-        self.bot = bot
247
+        super().__init__(bot)
248 248
         self.guild_id_to_context = {}  # Guild.id -> GuildContext
249 249
 
250 250
     # -- Config -------------------------------------------------------------

+ 1
- 1
config.py.sample Visa fil

@@ -7,7 +7,7 @@ CONFIG = {
7 7
 	'dbDatabase': 'databasename',
8 8
 	'joinWarningCount': 5,
9 9
 	'joinWarningSeconds': 5,
10
-	'commandPrefix': '$',
10
+	'commandPrefix': '$rb_',
11 11
 	'kickEmojiName': 'boot',
12 12
 	'kickEmoji': '👢',
13 13
 	'banEmojiName': 'no_entry_sign',

+ 1
- 0
rocketbot.py Visa fil

@@ -18,6 +18,7 @@ class Rocketbot(commands.Bot):
18 18
         super().__init__(command_prefix, **kwargs)
19 19
 
20 20
 intents = Intents.default()
21
+intents.messages = True
21 22
 intents.members = True # To get join/leave events
22 23
 bot = Rocketbot(command_prefix=CONFIG['commandPrefix'], intents=intents)
23 24
 bot.add_cog(GeneralCog(bot))

Laddar…
Avbryt
Spara