-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSettings.sample.py
More file actions
40 lines (29 loc) · 1.35 KB
/
Settings.sample.py
File metadata and controls
40 lines (29 loc) · 1.35 KB
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
class Settings:
# The URL to scrape the information from
search_url = ""
# The path to the persistant storage database (this may be absolute or relative, but the program should (haven't tested this) throw an exception if it's read-only)
database_path = "persistent.db"
# Only send different messages if this is true
only_send_different = True
class Logging:
# Logging settings
log_format_string = "%(asctime)s.%(msecs)d %(levelname)s - %(processName)s - %(module)s - %(funcName)s: %(message)s"
log_date_format = "%Y-%m-%d %H:%M:%S"
log_level = "Info"
log_file_location = "class_watcher.log"
clear_log_on_start = False
class Email:
# Email Settings
# The server settings
hostname = "" # The SMTP server hostname
tls_enabled = True # Whether or not TLS is enabled
force_tls = False
# The email username and password
username = ""
password = ""
from_name = "Class Monitoring Bot" # The name to appear in the from section
from_address = "" # The address the email message is being sent from
to_address = "" # The address the email message is being sent to
priority = 1 # The priority of the message (1 is the highest, 3 is normal, 5 is the lowest)
logging = Logging()
email = Email()