-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
46 lines (34 loc) · 1.87 KB
/
setup.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
import asyncio
import os
import mongoengine
from dotenv import find_dotenv, load_dotenv
from data.guild import Guild
load_dotenv(find_dotenv())
async def setup():
print("STARTING SETUP...")
guild = Guild()
# you should have this setup in the .env file beforehand
guild._id = int(os.environ.get("CHROMEY_MAINGUILD"))
guild.case_id = 1
guild.role_birthday = 123 # put in the role IDs for your server here
guild.role_nerds = 123 # put in the role IDs for your server here
guild.role_moderator = 123 # put in the role IDs for your server here
guild.role_mute = 123 # put in the role IDs for your server here
guild.role_helpers = 123
guild.role_rules = 123
guild.role_timeout = 123
guild.channel_offtopic = 123 # put in the channel IDs for your server here
guild.channel_private = 123 # put in the channel IDs for your server here
guild.channel_reaction_roles = 123 # put in the channel IDs for your server here
guild.channel_reports = 123 # put in the channel IDs for your server here
guild.channel_support = 123 # put in the channel IDs for your server here
guild.channel_deals = 123 # put in the channel IDs for your server here
guild.channel_modlogs = 123 # put in the channel IDs for your server here
guild.logging_excluded_channels = [] # put in a channel if you want (ignored in logging)
guild.filter_excluded_channels = [] # put in a channel if you want (ignored in filter)
guild.filter_excluded_guilds = [] # put guild ID to whitelist in invite filter if you want
guild.save()
print("DONE")
if __name__ == "__main__":
mongoengine.register_connection(alias="default", name="chromey")
res = asyncio.get_event_loop().run_until_complete( setup() )