-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbot_constants.py
More file actions
35 lines (24 loc) · 928 Bytes
/
bot_constants.py
File metadata and controls
35 lines (24 loc) · 928 Bytes
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
from enum import Enum
class GalleryType(Enum):
MINI = 1
MINOR = 2
MAIN = 3
class UnknownGalleryTypeException(Exception):
def __init__(self, attempted_enum: GalleryType, message: str = "Unrecognized GalleryEnum"):
self.attempted_enum = attempted_enum
self.message = message
super().__init__(self, attempted_enum)
""" --- SUPER IMPORTANT BOT STUFF HERE! --- """
# The ID of the channel you want the bot to link new posts in
TARGET_CHANNEL_ID = 1081673033376350260
# The ID of the channel you want the bot to log its status in
DEBUG_LOG_CHANNEL_ID = 1083980007078105108
# The name of the gallery as shown in the URL
GALLERY_NAME = "new_world"
# The type of the gallery
GALLERY_TYPE = GalleryType.MINOR
# Seconds between new post checks
REFRESH_TIME = 150
# Seconds between new post links within ONE check cycle
NEW_LINK_DELAY = 0.4
""" --- END SUPER IMPORTANT BOT STUFF --- """