aboutsummaryrefslogtreecommitdiff
path: root/config.py
blob: 583d8b585de3c67348abcad9d1c3ca9c03dc3585 (plain) (blame)
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
import entities


class listen:
    port = 1025


server_name = b"andrewyu.org"
users = {
    b"guest@" + server_name: {
        "password": b"guest",
        "bio": b"Guest",
        "permissions": set(),
        "options": ["offline-messages", "eat-cookies"],
    },
    b"Noisytoot@" + server_name: {
        "password": b"pissnet",
        "bio": b"Ron",
        "permissions": {"kill", "new-guild"},
        "options": ["offline-messages", "eat-cookies"],
    },
    b"andrew@" + server_name: {
        "password": b"hunter2",
        "bio": b"Andrew Yu",
        "permissions": {"kill", "new-guild"},
        "options": ["offline-messages", "eat-cookies"],
    },
    b"hax@" + server_name: {
        "password": b"lurk",
        "bio": b"Professional h4xx0r",
        "permissions": {"kill", "new-guild"},
        "options": ["offline-messages", "eat-cookies"],
    },
    b"luk3yx@" + server_name: {
        "password": b"billy",
        "bio": b"Random bot",
        "permissions": {"kill", "new-guild"},
        "options": ["offline-messages", "eat-cookies"],
    },
    b"idcbot@" + server_name: {
        "password": b"",
        "bio": b"#IDC relay bot",
        "permissions": {"kill", "new-guild"},
        "options": ["offline-messages", "eat-cookies"],
    },
    b"speechbot@" + server_name: {
        "password": b"",
        "bio": b"#librespeech relay bot",
        "permissions": {"kill", "new-guild"},
        "options": ["offline-messages", "eat-cookies"],
    },
    b"vitali64@" + server_name: {
        "password": b"hello",
        "bio": b"Nice person",
        "permissions": {"kill", "new-guild"},
        "options": ["offline-messages", "eat-cookies"],
    },
    b"lurk@" + server_name: {
        "password": b"HQWkf36lIttHBYGifwvcjso6RGPN2Ne_frrt6FpP3qc",
        "bio": b"Random human",
        "permissions": {"kill"},
        "options": ["bot"],
    },
}

guilds = {
    b"haxxors@" + server_name: {
        "description": b"Haxxors guild",
        "user_roles": [],
        "channels": [],
        "users": {b"Andrew", b"lurk"},
        "roles": [],
    }
}


channels = {
    b"#librespeech@" + server_name: {
        "broadcast_to": {
            b"andrew@andrewyu.org",
            b"Noisytoot@andrewyu.org",
            b"lurk@andrewyu.org",
            b"luk3yx@andrewyu.org",
            b"hax@andrewyu.org",
            b"vitali64@andrewyu.org",
            b"speechbot@andrewyu.org",
            b"guest@andrewyu.org",
        }
    },
    b"#hackers@" + server_name: {
        "broadcast_to": {
            b"andrew@andrewyu.org",
            b"lurk@andrewyu.org",
            b"Noisytoot@andrewyu.org",
            b"luk3yx@andrewyu.org",
            b"hax@andrewyu.org",
            b"vitali64@andrewyu.org",
            b"idcbot@andrewyu.org",
        }
    },
}


guilds = {
    b"idc": {
        "users": {
            b"@andrew@andrewyu.org",
            b"@lurk@andrewyu.org",
            b"@Noisytoot@andrewyu.org",
            b"@luk3yx@andrewyu.org",
            b"@hax@andrewyu.org",
            b"@vitali64@andrewyu.org",
            b"@idcbot@andrewyu.org",
        },
        "channels": {
            b"testing@andrewyu.org",
            b"protocol@andrewyu.org",
            b"server@andrewyu.org",
            b"client@andrewyu.org",
            b"general@andrewyu.org",
        },
    }
}


motd = b"""Hi there! This is the best IDC server you'll ever encounter.  Good luck!"""