-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
55 lines (44 loc) · 2.8 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
47
48
49
50
51
52
53
54
55
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("BOTTY_MAINGUILD"))
guild.case_id = 1
guild.role_birthday = 123 # put in the role IDs for your server here
guild.role_dev = 123 # put in the role IDs for your server here
guild.role_genius = 123 # put in the role IDs for your server here
guild.role_member = 123 # put in the role IDs for your server here
guild.role_memberedition = 123 # put in the role IDs for your server here
guild.role_memberplus = 123 # put in the role IDs for your server here
guild.role_memberpro = 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_sub_mod = 123 # put in the role IDs for your server here
guild.role_sub_news = 123 # put in the role IDs for your server here
guild.channel_applenews = 123 # put in the channel IDs for your server here
guild.channel_booster_emoji = 123 # put in the channel IDs for your server here
guild.channel_botspam = 123 # put in the channel IDs for your server here
guild.channel_common_issues = 123 # put in the channel IDs for your server here
guild.channel_development = 123 # put in the channel IDs for your server here
guild.channel_emoji_log = 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_general = 123 # put in the channel IDs for your server here
guild.channel_public = 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_subnews = 123 # put in the channel IDs for your server here
guild.channel_music = 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="botty")
res = asyncio.get_event_loop().run_until_complete( setup() )