-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathba_config.py
56 lines (46 loc) · 2.28 KB
/
ba_config.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
#!/usr/bin/python
# -*- coding: utf-8 -*-
import os
from ba_definitions import ROOT_DIR
#---------------------------
# [Required] Script Information
# TODO: Some stuff from here should be moved to a GUI settings file later
#---------------------------
ScriptName = "🏦 Bankaccount"
Website = "https://twitch.tv/rialDave/"
Description = "A bank account functionality to 'deposit' chatbot currency to your bank account."
Creator = "rialDave"
Version = "0.2.0-dev"
#---------------------------
# Global Variables
# Some stuff from here should be moved to a GUI settings file later
#---------------------------
DataFolder = "data"
DataFilename = "bankdata.json"
DataFilepath = os.path.join(ROOT_DIR, DataFolder, DataFilename)
DataBackupFolder = "archive" # inside data path
DataBackupFilePrefix = "bankdata_bak-"
DataBackupPath = os.path.join(ROOT_DIR, DataFolder, DataBackupFolder)
# Configuration of keys in json file
JSONVariablesBalance = "balance"
JSONVariablesHighestBalance = "highest_balance"
JSONVariablesHighestBalanceDate = "highest_balance_date"
JSONVariablesLatestDeposit = "latest_deposit"
JSONVariablesLatestDepositDate = "latest_deposit_date"
JSONVariablesLatestWithdrawal = "latest_withdrawal"
JSONVariablesLatestWithdrawalDate = "latest_withdrawal_date"
#---------------------------
# Command settings and responses (caution: some of the response texts are overwritten later / not refactored yet)
#---------------------------
CurrencyName = "ꝚꝒ"
CommandMain = "!bank"
CommandHelp = "help"
CommandDeposit = "deposit"
CommandWithdraw = "withdraw"
CommandBalance = "balance"
CommandTop10Richest = "top10richest"
CommandTop10RichestAllTime = "top10richestalltime"
ResponseHelp = "This is your bank account. You can use '!bank deposit <amount>' to transfer " + CurrencyName + " to your bank account and '!bank withdraw <amount>' to transfer it to your cash wallet for gambling and other stuff. '!bank balance' shows your current balance. See also: '!bank top10richest' and '!bank top10richestalltime'"
ResponseTop10Richest = "Here are the top 10 richest persons of this stream: "
ResponseTop10RichestAlltime = "Oh, the richest of all time? Alright, here are the top 10 richest persons of ALL-TIME: "
ResponsePermissionDeniedMod = "Permission denied: You have to be a Moderator to use this command!"