Skip to content

Commit

Permalink
Fixes and new stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
smartfrigde authored Mar 9, 2021
1 parent 95b5cc5 commit 6dffcf2
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 6 deletions.
25 changes: 25 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"extends": "eslint:recommended",
"env": {
"browser": true,
"node": true,
"es6": true
},
"parserOptions": {
"ecmaVersion": 8
},
"rules": {
"quotes": ["warn", "single", {"allowTemplateLiterals": true}],
"no-console": "off",
"no-unused-vars": "warn",
"no-useless-escape": "warn",
"no-empty": "warn",
"no-var": "error",
"no-mixed-spaces-and-tabs": "warn",
"prefer-const": "warn"
},
"globals": {
"ED": "readonly",
"EDApi": "readonly"
}
}
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"css_loader":{"path":"./plugins/style.css"},"friend_count":{"onlineOnly":false},"anti_track":{"enabled":true},"avatar_links":{"enabled":true},"css_settings":{"enabled":true},"direct_download":{"enabled":true},"double_click_edit":{"enabled":true},"double_click_mention":{"enabled":true},"guild_count":{"enabled":true},"hidden_channels":{"enabled":true},"quick_save":{"enabled":true},"silence":{"enabled":true},"silent_typing":{"enabled":false},"old_settings":{"enabled":false},"smartcord-settings":{"enabled":true},"sc_emoji":{"enabled":true},"hide_css":{"enabled":true},"SC_extras":{"enabled":true}}
{"css_loader":{"path":"./plugins/style.css"},"friend_count":{"onlineOnly":false},"anti_track":{"enabled":true},"avatar_links":{"enabled":true},"css_settings":{"enabled":true},"direct_download":{"enabled":true},"double_click_edit":{"enabled":true},"double_click_mention":{"enabled":true},"guild_count":{"enabled":true},"hidden_channels":{"enabled":true},"quick_save":{"enabled":true},"silence":{"enabled":true},"silent_typing":{"enabled":false},"old_settings":{"enabled":false},"smartcord-settings":{"enabled":true},"sc_emoji":{"enabled":true},"hide_css":{"enabled":true},"SC_extras":{"enabled":true},"char_count":{"enabled":true},"updater":{"branch":"master","auto_check":true,"auto_update":true,"notify":true,"changelogs":true,"viewed_changelog":true},"ed_settings":{"enabled":true},"bdPlugins":true,"uwu":{"enabled":true}}
2 changes: 1 addition & 1 deletion dom_shit.js
Original file line number Diff line number Diff line change
Expand Up @@ -587,4 +587,4 @@ window.BdApi.Themes = new class AddonAPI {
reload() {}
get() {return null;}
getAll() {return [];}
};
};
8 changes: 4 additions & 4 deletions plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,31 +46,31 @@ class Plugin {
* @param {...string} msg - Message to be logged
*/
log (...msg) {
console.log(`%c[EnhancedDiscord] %c[${this.name}]`, 'color: red;', `color: ${this.color}`, ...msg);
console.log(`%c[SmartCord] %c[${this.name}]`, 'color: red;', `color: ${this.color}`, ...msg);
}

/**
* Send a decorated console.info prefixed with ED and your plugin name
* @param {...string} msg - Message to be logged
*/
info (...msg) {
console.info(`%c[EnhancedDiscord] %c[${this.name}]`, 'color: red;', `color: ${this.color}`, ...msg);
console.info(`%c[SmartCord] %c[${this.name}]`, 'color: red;', `color: ${this.color}`, ...msg);
}

/**
* Send a decorated console.warn prefixed with ED and your plugin name
* @param {...string} msg - Message to be logged
*/
warn (...msg) {
console.warn(`%c[EnhancedDiscord] %c[${this.name}]`, 'color: red;', `color: ${this.color}`, ...msg);
console.warn(`%c[SmartCord] %c[${this.name}]`, 'color: red;', `color: ${this.color}`, ...msg);
}

/**
* Send a decorated console.error prefixed with ED and your plugin name
* @param {...string} msg - Message to be logged
*/
error (...msg) {
console.error(`%c[EnhancedDiscord] %c[${this.name}]`, 'color: red;', `color: ${this.color}`, ...msg);
console.error(`%c[SmartCord] %c[${this.name}]`, 'color: red;', `color: ${this.color}`, ...msg);
}

/**
Expand Down

0 comments on commit 6dffcf2

Please sign in to comment.