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