forked from oldramen/hashtag-amy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
125 lines (116 loc) · 9.31 KB
/
config.js
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
/*
Copyright 2012 yayramen && Inumedia.
This is the config file, where the variables for the bot are stored.
You can have multiple config files, and run multiple bots with the
same source files.
*/
require("./enums.js");
//This is where setup the streamers and shit for the party.
//Variables
global.mAuthId = "{auth_id}"; //authid of bot
global.mUserId = "{user_id}"; //userid of bot
global.mRoomId = "{room_id}"; //roomid of room to be hosted in
global.mMongoHost = "{mongo_host}"; //host of mongodb
global.mMongoDatabase = "{mongo_database}";//mongocollection for bot.
global.mMongoUser = "{mongo_user}"; //user of mongocollection
global.mMongoPass = "{mongo_pass}"; //password to mongocollection
global.mMongoPort = 27017;
global.mName = "#Amy"; //name of bot
global.mLaptop = "chrome";
global.mTheme = "EDM"; //default theme/genre for the room
global.mSpeakingLevel = Speaking.Debug; //whether or not the bot talks without being prompted (greetings, dj announcements, etc.)
global.mOwners = ['4e6498184fe7d042db021e95']; //array of userids for who's an owner of the room.
global.mVIPs = []; //array of userids for who's a VIP.
global.mWhiteList = []; //array of userids for whitelist.
global.mModerators = [];
global.mWhiteListEnabled = false; //whitelist is on ( true ) or off ( false )
global.mMaxSongs = 5; //default song limit
global.mWaitSongs = 1; //how many songs you must wait after hitting limit to dj again
global.mLimitOn = true; //if song limits are enabled by default
global.mQueueOn = true; //if queue is enabled by default
global.mAFK = 15; //default afk time (in minutes)
global.mWarn = true; //Whether bot warns for AFKs
global.mMinAFKLimitOperator = "&&";
global.mMinUsersForAFKLimit = 10;
global.mMinDJsForAFKLimit = 3;
global.mMinSongLimitOperator = null;; //Here ya go Dalton! :D
global.mMinUsersForSongLimit = null; //TODO: This.
global.mMinDJsForSongLimit = null; //
global.mMinQueueOperator = null; //
global.mMinUsersForQueue = null; //
global.mMinDJsForQueue = null; //
global.mSongLimitUserProportion = 250; //5 songs per 50 people in the room.
global.mNoSpamTimeout = 3; //3 seconds before the bot can say the same thing again.
global.mLoopTimeout = 5; //Does the main loop every 5 seconds.
global.mSaveTimeout = 30; //Saves everyone after 30 seconds.
global.mTimeForCacheFlush = 15000; //Time that the user stays in the cache after they leave.
global.mPMSpeak = true; //whether the bot will PM users so as to not spam
global.mModBop = false; //true, only mods can use the /dance command, false, anyone can.
global.mWaiter = true; //whether bartender (if we add that function) is enabled by default
global.mBotDJ = false; //whether the bot can dj on command
global.mLonelyDJ = true; //whether the bot will dj if only one dj in room
global.mCheckAFKWithLonely = false; //Should we check to see if people are afk when they're using Lonely DJ?
global.mCheckSongCountWithLonely= false; //Should we check the song count when they're using Lonely DJ?
global.mAfkBop = true; //whether bops reset the afk timer or not
global.mAutoBopForMods = true; //If we should automatically bop for mods and above.
global.mAutoBanBoots = false; //Instead of banning people, we simply boot them from the room.
global.mAutoBanOnTTLink = true; //Autobans someone from the room if they give a link to another room and joined < 1 minute ago
global.mAutoBanOnTTLinkTime = 60000; // If they post a link to a room on turntable within 60 seconds after joining the room, they will be banned. (60000=60 seconds.)
global.mDownVotesForOffGenre = 3;
global.mHoldSpotForRefreshTime = 120; //The bot will hold a spot for 2 minutes per request if someone needs to refresh.
global.mMaxElapsedTimeForDJSpot = 30000;
global.mIgnoreSongCountOpenSpot = true; //If the time that the spot was open for is longer than mMaxElapsedTimeForDJSpot, that person will be allowed up if this is true.
global.mIgnoreSongCountOnLonely = true; //If LonelyDJ is currently being used, the person will be able to get up if this is true.
global.mQueueGrabSpotTimeout = 30; //How many seconds we should hold a spot for someone when they are next in the queue and there is an open spot.
global.mDefaultGreeting = "/me hugs @{usernames}, welcome to {room}!"; //the default greeting message "Hey, {username}, welcome to {room}!"
global.mVIPGreeting = "Welcome @{usernames}, we have a VIP in the room!";
global.mSuperGreeting = "Hold the music! There's a SU in the house! Welcome, @{usernames}!";
global.mModeratorGreeting = "We've got a moderator in the room! Welcome @{usernames}!";
global.mAddDJ = null;//"Welcome to the deck, @{username}! Remember to follow the rules, and the current theme is {theme}.";
global.mRemDJ = null;
global.mAddMod = null;
global.mRemMod = null;
global.mSnagMSg = null;
global.mEndSong = "{songtitle}: {up} ↑, {down} ↓, {heartcount} <3.";
global.mOverMaxSongsQueueOn = "Hey, @{username}, you're over your max songs! You've got to wait {songwait} song(s) to get back up.";
global.mOverMaxSongsQueueOff = null;
global.mHelpMsg = "Hey, {user.name}, the theme is {theme}, the song limit is {songlimit}, The queue is currently {queuecurrentlyon}, and {afk} minutes for afk."; //the default help message.
global.mWarnMsg = "Hey, @{username}, no falling asleep on deck!"; //the default warning message
global.mRemDJMsg = "/tableflip {username}, you've been afk for too long.";
global.mAdvanceQueue = "Hey @{username}, it's your time to shine! Please take your spot before "+mQueueGrabSpotTimeout+" seconds has passed.'";
global.mWarnDJNotNextInQueue = "Sorry, {username}, you have to wait your turn. It's currently {nextinqueue}'s turn to get on deck.";
global.mOpenSpotNoQueueing = "Sorry, {username}, there's already an open spot. Feel free to just hop up.";
global.mQueueOff = "I'm sorry but the queue is currently off.";
global.mQueueStatus = "There is currently {queueamount} people standing in line to get on deck.";
global.mQueueEmpty = "The queue is currently empty!";
global.mQueueUsers = "The queue is currently: {queueusers}, in that order.";
global.mQueueAdded = "Alright, {username}, you've been added to the queue!";
global.mQueueAlreadyDJ = "I'm sorry, {username}, but you're already a DJ."
global.mAlreadyInQueue = "Sorry, {username}, but you're already in the queue."
global.mCommandsList = "The list of commands are as follows: /{commands}";
global.mThemeIs = "The current theme is {theme}.";
global.mCurrentDJSongCount = "The current song count is: {djsandsongcount}";
global.mCurrentDJAfkCount = "The current afk timer is: {djsandafkcount}";
global.mRemoveFromQueue = "You've been removed from the queue.";
global.mNotInQueue = "You're not in the queue.";
global.mModRemoveFromQueue = "Removed {username} from the queue.";
global.mInfoOnRoom = "Hi {username}! Welcome to {roomname}! The theme is {theme}, the song limit is {songlimit}, and if you're on deck you can only be afk for {afk} minutes.";
global.mNotDJ = "I'm sorry {username}, but you're not a dj.";
global.mIsNowVIP = "{username} is now a VIP.";
global.mIsNoLongerVIP = "{username} is no longer a VIP."
global.mUnbanned = "{username} is now unbanned.";
global.mBanReason = "You're banned. Gtfo.";
global.mBanned = "{username} is now banned.";
global.mTheirUserId = "{username}'s userid is: {user.userid}";
global.mYourUserId = "Your userid is: {user.userid}";
global.mNotOnWhiteList = "I'm sorry, but you're not on the whitelist."; /// PMed to User.
global.mAddedToWhiteList = "{username} has been added to the whitelist.";
global.mRemovedFromWhiteList = "{username} has been removed from the whitelist.";
global.mOffGenre = "I'm sorry, but your song seems to be off genre, and we have to remove you from the deck."; // PMed to User.
global.mPMWillBootOffDeck = "Alright, I'll boot you off the deck at the end of your song.";
global.mReadyRefresh = "Okay, you can go ahead and refresh and I'll make sure you get your spot back.";
global.mSpotOpenFor = "The DJ Spot was open for {opentime} seconds. ";
global.mHaveToWait = "I'm sorry but you have to wait {user.mWaitingSongLimit} song(s) to get back up.";
///global.mCanAdds = false; //whether or not mods can add songs to bot's queue ///TODO: Why is this needed?
//Now, we begin the party.
require("./main.js");