Event cogs
This commit is contained in:
parent
71049a6670
commit
0c776039b3
@ -20,7 +20,7 @@ SquogCurrentConnection: nextcord.VoiceClient = None
|
||||
|
||||
SquogDownload = yt_dlp.YoutubeDL(SquogVideo)
|
||||
|
||||
class Main(commands.Cog):
|
||||
class Voice(commands.Cog):
|
||||
def __init__(self, bot):
|
||||
self.client = bot
|
||||
|
||||
@ -77,4 +77,4 @@ class Main(commands.Cog):
|
||||
SquogCurrentConnection.stop()
|
||||
|
||||
def setup(bot):
|
||||
bot.add_cog(Main(bot))
|
||||
bot.add_cog(Voice(bot))
|
@ -1,7 +1,7 @@
|
||||
import nextcord
|
||||
from nextcord.ext import commands
|
||||
|
||||
class Main(commands.Cog):
|
||||
class Logger(commands.Cog):
|
||||
def __init__(self, bot):
|
||||
self.client = bot
|
||||
|
||||
@ -31,3 +31,6 @@ class Main(commands.Cog):
|
||||
print("Bot logged")
|
||||
SquogMod = self.client.get_channel(1356577069068324986)
|
||||
print(SquogMod)
|
||||
|
||||
def setup(bot):
|
||||
bot.add_cog(Logger(bot))
|
@ -1,7 +1,7 @@
|
||||
import nextcord
|
||||
from nextcord.ext import commands
|
||||
|
||||
class Main(commands.Cog):
|
||||
class Members(commands.Cog):
|
||||
def __init__(self, bot):
|
||||
self.client = bot
|
||||
|
||||
@ -14,3 +14,6 @@ class Main(commands.Cog):
|
||||
@commands.Cog.listener
|
||||
async def on_member_remove(member: nextcord.Member):
|
||||
print(f"Member {member.display_name} left")
|
||||
|
||||
def setup(bot):
|
||||
bot.add_cog(Members(bot))
|
Loading…
x
Reference in New Issue
Block a user