-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.ts
133 lines (118 loc) · 5.73 KB
/
config.ts
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
/* This file is used to store variables that the bot frequently needs to reference.
* These variables are safe to share with others.
*/
import { getString } from './global';
/* Command prefixes - The symbols or phrases that the bot should respond to.
* The bot can also respond to being mentioned.
* These prefixes should not conflict with other Discord bots. List unusable prefixes below:
* Dyno uses ?
* FredBoat uses ;;
* IdleRPG uses $
* MEE6 uses !
* SafetyAtLast uses &
* Tatsu uses t!
* Hydra uses .
* \ may be used innocently when trying to get mention and emoji IDs
*/
export const COMMAND_PREFIXES = ['>', '%', '^', ':', ',', 'pylon ', 'py '];
// Embed colour - The colour of embed content that the bot posts.
export const EMBED_COLOUR = 0xff4d00;
export const EMBED_COLOUR_ERROR = 0xff0000;
// Command cooldown - How long users should wait between commands in milliseconds.
export const COMMAND_COOLDOWN = 3000;
// Error message settings.
export const ERROR_TIMEOUT_MINIMUM = 5000; // How long users should be given to read error messages by default in milliseconds.
export const ERROR_TIMEOUT_PER_CHAR = 50; // How many milliseconds to add onto the time necessary to read error messages per character.
/* Command categories - Human-readable explanations of the different types of commands.
* This is used by the help command to return info relevant to the user's query.
* Command categories need to be defined or the help menu will fail to show commands inside them.
*/
export const COMMAND_CATEGORIES: any[] = [
{
name: 'chat',
title: getString('category_chat_title'),
description: getString('category_chat_desc'),
longDescription: getString('category_chat_desc_long'),
},
{
name: 'economy',
title: getString('category_economy_title'),
description: getString('category_economy_desc').replaceAll(
'%1',
getString('currency_name')
),
longDescription: getString('category_economy_desc_long').replaceAll(
'%1',
getString('currency_name')
),
},
{
name: 'fun',
title: getString('category_fun_title'),
description: getString('category_fun_desc'),
longDescription: getString('category_fun_desc_long'),
},
{
name: 'gambling',
title: getString('category_gambling_title'),
description: getString('category_gambling_desc'),
longDescription: getString('category_gambling_desc_long'),
},
{
name: 'links',
title: getString('category_links_title'),
description: getString('category_links_desc'),
longDescription: getString('category_links_desc_long'),
},
{
name: 'tf2',
title: getString('category_tf2_title'),
description: getString('category_tf2_desc'),
longDescription: getString('category_tf2_desc_long'),
},
{
name: 'system',
title: getString('category_system_title'),
description: getString('category_system_desc'),
longDescription: getString('category_system_desc_long'),
},
{
name: 'default',
title: getString('category_default_title'),
description: getString('category_default_desc'),
},
];
export const COMMAND_DEFAULT_CATEGORY = 'default';
/* Bot channel - The channel in which most of the bot's commands should be relegated to.
* Attempting to use a restricted command outside this or the developer channel will warn the user.
*/
export const BOT_CHANNEL = '';
// Economy daily amount - How much currency to give users per day if they claim it, randomised within this range.
export const ECONOMY_DAILY_MINIMUM = 70;
export const ECONOMY_DAILY_MAXIMUM = 99;
// Hangman command settings.
export const HANGMAN_CHANCES = 7; // How many chances users get to guess a word.
export const HANGMAN_TIMEOUT = 60 * 60000; // How long until a user's game is cancelled automatically in milliseconds.
// Hot or Not command settings.
export const HOTORNOT_TIMEOUT = 60000; // How long until a voting window is cancelled automatically in milliseconds.
// Jazztronauts command settings.
export const JAZZ_PILLAGE_COOLDOWN = 5 * 60000; // How long users must wait between pillaging objects in milliseconds.
export const JAZZ_OBJECTS_MINIMUM = 16; // The minimum number of objects that can spawn at once.
export const JAZZ_OBJECTS_MAXIMUM = 30; // The maximum number of objects that can spawn at once.
export const JAZZ_OUTSIDE_CHANCE = 0.5; // How often outside objects will appear out of 1.
export const JAZZ_REWARD_SMALL_MINIMUM = 2; // The base minimum number of points for small objects.
export const JAZZ_REWARD_SMALL_MAXIMUM = 4; // The base maximum number of points for small objects.
export const JAZZ_REWARD_LARGE_MINIMUM = 16; // The base minimum number of points for large objects.
export const JAZZ_REWARD_LARGE_MAXIMUM = 20; // The base maximum number of points for large objects.
export const JAZZ_REWARD_WORLD_MULTIPLIER = 0.5; // How much to multiply the points of an object if it is not a prop.
export const JAZZ_REWARD_BONUS_MULTIPLIER = 2; // How much to multiply the points of an object if it is a bonus.
// Standoff command settings.
export const STANDOFF_WAIT_MINIMUM = 4000; // The minimum amount of time before users can fire at each-other in milliseconds, should be more than command cooldown.
export const STANDOFF_WAIT_MAXIMUM = 10000; // The maximum amount of time before users can fire at each-other in milliseconds.
export const STANDOFF_TIMEOUT = 60000; // How long until a challenge is cancelled automatically in milliseconds.
// Steam Game default steamid64 - What steamid64 to use when none is provided. Get one from https://steamid.io
export const STEAMGAME_DEFAULT_STEAMID64 = '';
// TV channel - The channel where the bot should post a random video from the TV command each day.
export const TV_CHANNEL = '';
// Developer mode - Changes the bot behaviour depending on the specified channel.
export const DEV_CHANNEL = '';