Praxis_Bot/config.py
2021-05-14 23:30:40 -04:00

107 lines
3.6 KiB
Python

# The main repository of Praxis_Bot can be found at: <https://github.com/TheCuriousNerd/Praxis_Bot>.
# Copyright (C) 2021
# Author Info Examples:
# Name / Email / Website
# Twitter / Twitch / Youtube
# Authors:
# Alex Orid / inquiries@thecuriousnerd.com / TheCuriousNerd.com
# Twitter: @TheCuriousNerd / Twitch: TheCuriousNerd / Youtube: thecuriousnerd / Github: TheCuriousNerd
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
from enum import Enum
import badwords as badwords
credentialsNickname = "praxis_bot"
test_module: bool = False
user_module: bool = True
autoJoin_TwitchChannel = "thecuriousnerd"
autoJoin_TwitchChannels = ["thecuriousnerd"]
allowedCommandsList_TwitchPowerUsers = ["thecuriousnerd", "lakotor", "blastofcynicism", "theredpoint"]
allowedTTS_List = ["thecuriousnerd", "lakotor", "blastofcynicism", "theredpoint", "<@76078763984551936>", "<@!76078763984551936>"]
adminUsers_List = ["thecuriousnerd", "<@!76078763984551936>"]
#Twitch Module Configs
block_TwitchChannelsMessaging = [""] # Blocks the ability to send messages to twitch channels
blockAll_TwitchChatChannelsMessaging = False # Blocks the ability to send messages to twitch channels
autoEnabled_TwitchTTS = False # Enables TTS for ALL
autoEnabled_TwitchTTS_SpeakersList_Only = False # Enables TTS for Allowed TTS List Only
#Discord Module Configs
block_DiscordChannelsMessaging = [""] # Blocks the ability to send messages to Discord channels
blockAll_DiscordChannelsMessaging = False # Blocks the ability to send messages to Discord channels
blockAll_DiscordPrivateMessaging = False # Private Messaging not yet implemented
autoEnabled_DiscordChannelsTTS = True
selected_DiscordTTSChannels = ["431129571308339210"]
block_DiscordChannelsTTS = [""] # block supersedes the tts_enabled bool
blockAll_DiscordChannelsTTS = False # blockAll supersedes the force bool and force list and tts_enabled bool
force_DiscordChannelsTTS = [""] # force supersedes the block list
forceAll_DiscordChatChannelsTTS = False # forceAll supersedes the blockAll bool and block list and force list
#User Module Configs
blockAll_TTS_URL_UserModule = True
#Chyron Module Configs
chyronListSpaceCount = 25
#Lights Module Configs
colorParse_maxDigits = 4
#General Configs
skip_splashScreen = False
skip_splashScreenClear = False
skip_splashScreenSleep = False
botList = ("Nightbot", "StreamElements", "Moobot", "Praxis Bot", "praxis_bot", "MEE6 +", "Nerdy", "Rythm", "Groovy")
class FileNameStrategy(Enum):
TIME_BASED = 1
CONTENT_BASED = 2
fileNameStrategy = FileNameStrategy.CONTENT_BASED
#OLD CLASS WILL DELETE
class DBStrategy(Enum):
SQLite = 1
MySQL = 2
#OLD CONFIGS WILL BE DELETED SOON
#dbStrategy = DBStrategy.SQLite
#TTS Configs
is_tts_Speaker_Enabled = False
is_tts_URL_Blocked = True
class Speaker(Enum):
GOOGLE_TEXT_TO_SPEECH = 1
currentSpeaker = Speaker.GOOGLE_TEXT_TO_SPEECH
#Misc Configs
slurList = badwords.slurList
praxisVersion_Alpha = "0 " #Build
praxisVersion_Delta = "1 " #Minor
praxisVersion_Omega = "0.8 " #Major