-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
BotEnums.py
36 lines (33 loc) · 841 Bytes
/
BotEnums.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
from EnumWrapper import CompareEnum
from enum import auto
class BanLookup(CompareEnum):
Good=auto()
Banned=auto()
Unbanned=auto()
Duplicate=auto()
NotExist=auto()
DBError=auto()
class BanResult(CompareEnum):
Processed=auto()
NotBanned=auto()
InvalidUser=auto()
LostPermissions=auto()
ServerOwner=auto()
Error=auto()
class RelayMessageType(CompareEnum):
Hello=auto()
BanUser=auto()
UnbanUser=auto()
LeaveServer=auto()
ReprocessBans=auto()
ReprocessInstance=auto()
# This activates all servers that an user is a mod in
ProcessActivation=auto()
# This activates specifically for one server
ProcessServerActivation=auto()
ProcessDeactivation=auto()
Ping=auto()
# TODO: In future to remove the number of writers
AddedToServer=auto()
RemovedFromServer=auto()
ServerOwnerChanged=auto()