-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.py
47 lines (38 loc) · 1.87 KB
/
variables.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import os
import nextcord
from dotenv import load_dotenv
from nextcord.ext import commands
load_dotenv()
bot_name = "devlopbot"
embed_color = 0xAD1457
bot = commands.Bot(intents=nextcord.Intents(guilds=True, members=True, reactions=True, messages=True, message_content=True), status=nextcord.Status.idle,
activity=nextcord.Activity(type=nextcord.ActivityType.playing, name="démarrer..."))
class DiscordVariables(commands.Cog):
main_guild: nextcord.Guild
projects_categ: nextcord.CategoryChannel
revision_categ: nextcord.CategoryChannel
tickets_categ: nextcord.CategoryChannel
welcome_channel: nextcord.TextChannel
logs_channel: nextcord.TextChannel
member_stats_channel: nextcord.VoiceChannel
projects_stats_channel: nextcord.VoiceChannel
member_role: nextcord.Role
moderator_role: nextcord.Role
support_role: nextcord.Role
rules_msg: nextcord.Message
@commands.Cog.listener()
async def on_ready(self):
self.main_guild = bot.get_guild(988543675640455178)
self.projects_categ = self.main_guild.get_channel(988777897550573599)
self.revision_categ = self.main_guild.get_channel(989846265347047444)
self.tickets_categ = self.main_guild.get_channel(995064556621660170)
self.welcome_channel = self.main_guild.get_channel(988882460601372784)
self.logs_channel = self.main_guild.get_channel(int(os.getenv("LOG_CHANNEL")))
self.member_stats_channel = self.main_guild.get_channel(988887221262221342)
self.projects_stats_channel = self.main_guild.get_channel(989628843629355149)
self.member_role = self.main_guild.get_role(988878382903214151)
self.moderator_role = self.main_guild.get_role(988818143453519954)
self.support_role = self.main_guild.get_role(995091049850609764)
self.rules_msg = await self.main_guild.get_channel(988878746096377947).fetch_message(988891271198289970)
discord_variables = DiscordVariables()
guild_ids = [895005331980185640, 988543675640455178]