Skip to content

Commit

Permalink
move thelounge to dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
MiniDigger committed Dec 30, 2019
1 parent a6258fe commit 03134c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const runShortcut = {
const to = getShortcut(command);

// check if multiple or one shortcut
if(Array.isArray(to)) {
if (Array.isArray(to)) {
// iterate over all commands
to.forEach(entry => {
// handle placeholders and run
Expand Down Expand Up @@ -142,7 +142,7 @@ const shortcutCommand = {
client.sendMessage("Shortcut " + code + from + code + " -> " + code + to + code + " added", target.chan);
if (next) {
client.sendMessage("Whole shortcut now runs these commands: ", target.chan);
const joined = getShortcut(from).join(code + ", " + code);
const joined = getShortcut(from).join(code + ", " + code);
client.sendMessage(code + joined + code, target.chan);
}
break;
Expand All @@ -154,8 +154,8 @@ const shortcutCommand = {
client.sendMessage("There are " + code + shortcuts.length + code + " shortcuts configured: ", target.chan);
shortcuts.forEach(function (shortcut) {
let to;
if(Array.isArray(shortcut.to)) {
const joined = shortcut.to.join(code + ", " + code);
if (Array.isArray(shortcut.to)) {
const joined = shortcut.to.join(code + ", " + code);
to = code + joined + code;
} else {
to = code + shortcut.to + code
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"name": "Shortcuts",
"type": "plugin"
},
"devDependencies": {
"dependencies": {
"thelounge": "3.3.0"
}
}

0 comments on commit 03134c8

Please sign in to comment.