Skip to content
This repository has been archived by the owner on Jul 3, 2021. It is now read-only.

Commit

Permalink
Update: Added all constants objects to prototype
Browse files Browse the repository at this point in the history
events, BAN, STATUS, GLOBAL_ROLES, ROOM_ROLE, BAN_REASON, MUTE, MUTE_REASON are all accessible via bot now
  • Loading branch information
thedark1337 committed Sep 2, 2016
1 parent d1d3e18 commit 5136b0f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -1186,7 +1186,7 @@ PlugAPI.Utils = utils;
* @type {{NONE: number, RESIDENTDJ: number, BOUNCER: number, MANAGER: number, COHOST: number, HOST: number}}
* @const
*/
PlugAPI.ROOM_ROLE = {
PlugAPI.ROOM_ROLE = PlugAPI.prototype.ROOM_ROLE = {
NONE: 0,
RESIDENTDJ: 1,
BOUNCER: 2,
Expand All @@ -1200,7 +1200,7 @@ PlugAPI.ROOM_ROLE = {
* @type {{NONE: number, VOLUNTEER: number, AMBASSADOR: number, LEADER: number, ADMIN: number}}
* @const
*/
PlugAPI.GLOBAL_ROLES = {
PlugAPI.GLOBAL_ROLES = PlugAPI.prototype.GLOBAL_ROLES = {
NONE: 0,
VOLUNTEER: 2,
AMBASSADOR: 3,
Expand All @@ -1213,7 +1213,7 @@ PlugAPI.GLOBAL_ROLES = {
* @type {{OFFLINE: number, ONLINE: number}}
* @const
*/
PlugAPI.STATUS = {
PlugAPI.STATUS = PlugAPI.prototype.STATUS = {
OFFLINE: 0,
ONLINE: 1
};
Expand All @@ -1223,7 +1223,7 @@ PlugAPI.STATUS = {
* @type {{HOUR: string, DAY: string, PERMA: string}}
* @const
*/
PlugAPI.BAN = {
PlugAPI.BAN = PlugAPI.prototype.BAN = {
HOUR: 'h',
DAY: 'd',
PERMA: 'f'
Expand All @@ -1234,7 +1234,7 @@ PlugAPI.BAN = {
* @type {{SPAMMING_TROLLING: number, VERBAL_ABUSE: number, OFFENSIVE_MEDIA: number, INAPPROPRIATE_GENRE: number, NEGATIVE_ATTITUDE: number}}
* @const
*/
PlugAPI.BAN_REASON = {
PlugAPI.BAN_REASON = PlugAPI.prototype.BAN_REASON = {
SPAMMING_TROLLING: 1,
VERBAL_ABUSE: 2,
OFFENSIVE_MEDIA: 3,
Expand All @@ -1250,7 +1250,7 @@ PlugAPI.BAN_REASON = {
* @type {{SHORT: string, MEDIUM: string, LONG: string}}
* @const
*/
PlugAPI.MUTE = {
PlugAPI.MUTE = PlugAPI.prototype.MUTE = {
SHORT: 's',
MEDIUM: 'm',
LONG: 'l'
Expand All @@ -1261,7 +1261,7 @@ PlugAPI.MUTE = {
* @type {{VIOLATING_COMMUNITY_RULES: number, VERBAL_ABUSE: number, SPAMMING_TROLLING: number, OFFENSIVE_LANGUAGE: number, NEGATIVE_ATTITUDE: number}}
* @const
*/
PlugAPI.MUTE_REASON = {
PlugAPI.MUTE_REASON = PlugAPI.prototype.MUTE_REASON = {
VIOLATING_COMMUNITY_RULES: 1,
VERBAL_ABUSE: 2,
SPAMMING_TROLLING: 3,
Expand All @@ -1273,7 +1273,7 @@ PlugAPI.MUTE_REASON = {
* Event Types
* @const {{ADVANCE: string, BAN: string, BOOTH_LOCKED: string, CHAT: string, CHAT_COMMAND: string, CHAT_DELETE: string, CHAT_EMOTE: string, CHAT_LEVEL_UPDATE: string, COMMAND: string, DJ_LIST_CYCLE: string, DJ_LIST_UPDATE: string, EARN: string, EMOTE: string, FOLLOW_JOIN: string, FLOOD_CHAT: string, GRAB: string, KILL_SESSION: string, MODERATE_ADD_DJ: string, MODERATE_ADD_WAITLIST: string, MODERATE_AMBASSADOR: string, MODERATE_BAN: string, MODERATE_MOVE_DJ: string, MODERATE_MUTE: string, MODERATE_REMOVE_DJ: string, MODERATE_REMOVE_WAITLIST: string, MODERATE_SKIP: string, MODERATE_STAFF: string, NOTIFY: string, PDJ_MESSAGE: string, PDJ_UPDATE: string, PING: string, PLAYLIST_CYCLE: string, REQUEST_DURATION: string, REQUEST_DURATION_RETRY: string, ROOM_CHANGE: string, ROOM_DESCRIPTION_UPDATE: string, ROOM_JOIN: string, ROOM_NAME_UPDATE: string, ROOM_VOTE_SKIP: string, ROOM_WELCOME_UPDATE: string, SESSION_CLOSE: string, SKIP: string, STROBE_TOGGLE: string, USER_COUNTER_UPDATE: string, USER_FOLLOW: string, USER_JOIN: string, USER_LEAVE: string, USER_UPDATE: string, VOTE: string}}
*/
PlugAPI.events = require('./events.json');
PlugAPI.events = PlugAPI.prototype.events = require('./events.json');
util.inherits(PlugAPI, EventEmitter3);

/**
Expand Down

0 comments on commit 5136b0f

Please sign in to comment.