-
Notifications
You must be signed in to change notification settings - Fork 3
/
keys.py
executable file
·57 lines (48 loc) · 1.47 KB
/
keys.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
56
57
# -*- coding: utf-8 -*-
"""
Discord Bot for HardwareFlare and others
@author: Tisboyo
"""
import logging
import os
from dotenv import load_dotenv
# Load environment variables from .env
load_dotenv(encoding="UTF-8")
# Logging level
logging_level = logging.INFO if not os.getenv("DEBUG") else logging.DEBUG
# Authentication Keys
# Discord API Key
discord = dict(
token=os.getenv("discord_token"),
)
# Twitter API Key
twitter = dict(
consumer_key=os.getenv("twitter_consumer_key"),
consumer_secret=os.getenv("twitter_consumer_secret"),
access_token=os.getenv("twitter_access_token"),
access_token_secret=os.getenv("twitter_access_token_secret"),
)
# Backup Server
backup = dict(
# Valid methods are none, ftp or copyonly
method=os.getenv("backup_method"),
# Path where files are copied to locally for backup, leave trailing slash
backup_path=os.getenv("backup_path"),
# Host to upload to for ftp
upload_server=os.getenv("backup_server"),
upload_port=os.getenv("backup_port"),
# Full Path on ftp server, with trailing slash
upload_path=os.getenv("backup_upload_path"),
# FTP Username
user=os.getenv("backup_ftp_username"),
# FTP Password
passwd=os.getenv("backup_ftp_passwd"),
)
# Twitch Keys
twitch = dict(
# Client ID
client_id=os.getenv("twitch_clientid"),
# OAuth Key
key=os.getenv("twitch_key"),
)
error_channel_webhook = os.getenv("error_webhook")