commit ffbaa763d5f73e996c07f1e36853d413b4d51cf9
parent 5893560d4a45084024dcfd7363f5d3d4f693d673
Author: Demonstrandum <moi@knutsen.co>
Date: Thu, 19 Mar 2020 23:42:41 +0000
Can't code...
Diffstat:
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/lib/commands/drug.ts b/lib/commands/drug.ts
@@ -1,3 +1,4 @@
+// This is Danny's, I don't endorse it.
const drugs = {
'alcohol': [10000, 100000],
'amphetamine': [10, 20, 40, 60],
diff --git a/lib/main.ts b/lib/main.ts
@@ -98,7 +98,7 @@ export class SimpOMatic {
if (expanded_command_words.length > 1) {
// This means the alias has expanded to more than just one word.
expansion = expanded_command_words.shift();
- expanded_command_words.reverse().each(e => args.shift(e));
+ expanded_command_words.reverse().each(e => args.unshift(e));
}
return expansion;
};
@@ -222,7 +222,7 @@ export class SimpOMatic {
if (args.length === 0 || args[0] === 'ls') {
const lines = Object.keys(CONFIG.commands.aliases)
- .map((e, i) => `${i + 1}. \`${p}${e}\` ↦ \`${p}${CONFIG.commands.aliases[e]}\``);
+ .map((e, i) => `${i + 1}. \`${p}${e}\` ↦ \`${p}${CONFIG.commands.aliases[e]}\`\n`);
message.answer('List of **Aliases**:\n');
lines.unshift('**KEY: `Alias` ↦ `Command it maps to`**\n\n');