forked from oldramen/hashtag-amy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
107 lines (92 loc) · 6.77 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
/*
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.
*/
//Bring in the responses
require("./enums.js"); //ignore this
//Main Authorization Information
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
//Database Information
global.mMongoHost = "{mongo_host}";//host of mongodb, usually localhost or 127.0.0.1
global.mMongoDatabase = "{mongo_database}";//mongocollection for bot.
global.mMongoUser = "{mongo_user}";//user of mongocollection
global.mMongoPass = "{mongo_pass}";//password to mongocollection
global.mMongoPort = 27017;//Port, this is default
//General Information
global.mName = "#Amy";//name of bot [if bot's name is different, this will change it.]
global.mLaptop = "chrome";//Laptop the bot will use if the bot decides to DJ (lonely dj, /song)
global.mTheme = "EDM";//default theme/genre for the room
//User Arrays [ignore mModerators]
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 = [];//array of userids identified as moderators [dynamically generated, leave blank]
//Song Limits
global.mLimitOn = true; //If songs limits are on by default
global.mMaxSongs = 5; //How many songs you can play
global.mWaitSongs = 1; //How many songs you must wait after hitting limit to dj again
global.mMinSongLimitOperator = null; //Whether song limits are dynamically generated null by default
global.mMinUsersForSongLimit = null; //How many users have to be in the room to auto turn on song limits
global.mMinDJsForSongLimit = null; //How many DJs have to be on deck to auto turn on song limits
global.mSongLimitUserProportion = 250; //5 songs per 50 people in the room.
//Lotto System
global.mLottoOn = false; //Whether or not the next DJ is selected via a lottery
global.mLottoTime = 15; //How long (in seconds) that users can /spin after a DJ drops
global.mLottoHoldTime = 15; //How long (in seconds) the bot will hold the dj spot for the lotto winner
//Room Queue
global.mQueueOn = true; //If room queue is on by default
global.mMinQueueOperator = null; //Whether queue is turned on dynamically
global.mMinUsersForQueue = null; //How many users must be in the room to auto turn on the queue
global.mMinDJsForQueue = null; //How many DJs must be on deck to turn on queue automatically
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.
//AFK Settings
global.mAFK = 15; //How many minutes of AFK before you get booted
global.mWarn = true; //Should the bot warn users who are going afk?
global.mMinAFKLimitOperator = "&&"; //Whether or not the AFK Limit is generated dynamically
global.mMinUsersForAFKLimit = 10; //Minimum users in the room before the AFK limit is turned on dynamically
global.mMinDJsForAFKLimit = 3; //Minimum DJs on deck before AFK limit is turned on dynamically
global.mAfkBop = true; //Should bopping for a song reset that person's afk time?
//Lonely DJ
global.mLonelyDJ = true; //If true, bot will hop up to DJ if there is only one DJ [to prevent music cutoff]
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?
//General Toggles
global.mWhiteListEnabled = false; //Whitelist is on ( true ) or off ( false )
global.mPMSpeak = true; //Whether the bot will PM users so as to not spam
global.mModBop = false; //True, only mods can use the /bop command, false, anyone can.
global.mWaiter = true; //Whether waiter (/order) is enabled by default
global.mBotDJ = false; //Whether the bot can dj on commandglobal.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.mAutoBopForMods = true; //If we should automatically bop for mods and above.
global.bootTTStats = false; //If we should automatically boot TT Stats when they join the room.
//Twitter
global.mTwitOn = false; //Whether or not twitter functions are enabled
global.mModTwit = false; //If true, mods can tweet, if false, only owners can tweet
global.mTwitTimeout = 20; //How often [in minutes] the bot can tweet
global.mTwitKey = ""; //Consumer Key for Twitter
global.mTwitSecret = ""; //Consumer Secret for Twitter
global.mTwitToken = ""; //Access Token for Twitter
global.mTwitTokenSecret = ""; //Access Secret for Twitter
//Lastfm
global.mUseLastfm = false; //Whether or not we connect to lastfm
global.mLastfmKey = ""; //Api Key for Lastfm
global.mLastfmSecret = ""; //Secret for Lastfm
//Advanced
global.mSpeakingLevel = Speaking.Debug; //whether or not the bot talks without being prompted (greetings, dj announcements, etc.)
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.
//Let's start the bot then.
require("./main.js");