diff options
| author | 8cy <[email protected]> | 2020-04-04 20:07:15 -0700 |
|---|---|---|
| committer | 8cy <[email protected]> | 2020-04-04 20:07:15 -0700 |
| commit | 5f1ee86ea904d2d1d75855a8349493eb040a8663 (patch) | |
| tree | d9870b8074b4a4ac3a8e955e063d400c64d6096a | |
| parent | add new prefixes, v1.2.7 (diff) | |
| download | s5nical-5f1ee86ea904d2d1d75855a8349493eb040a8663.tar.xz s5nical-5f1ee86ea904d2d1d75855a8349493eb040a8663.zip | |
v1.2.8
- fix prefix typo in config.json
- add prefixes to prefix check and other
| -rw-r--r-- | app.js | 20 | ||||
| -rw-r--r-- | config.json | 2 |
2 files changed, 18 insertions, 4 deletions
@@ -41,8 +41,12 @@ bot.on('message', async msg => { return "alt3";
} else if (msgContent.startsWith(config.prefixes.alt4)) {
return "alt4";
- } else if (msgContent.startsWith(config.prefixes.alt4b)) {
- return "alt4b";
+ } else if (msgContent.startsWith(config.prefixes.alt5)) {
+ return "alt5";
+ } else if (msgContent.startsWith(config.prefixes.alt6)) {
+ return "alt6";
+ } else if (msgContent.startsWith(config.prefixes.alt6b)) {
+ return "alt6b";
}
}
@@ -71,7 +75,17 @@ bot.on('message', async msg => { var command = args.shift().toLocaleLowerCase();
if (msg.author.bot || !msg.content.startsWith(config.prefixes.alt4)) return;
- } else if (prefixCheck() == "alt4b") {
+ } else if (prefixCheck() == "alt5") {
+ var args = msg.content.slice(config.prefixes.alt4.length).split(/ +/);
+ var command = args.shift().toLocaleLowerCase();
+
+ if (msg.author.bot || !msg.content.startsWith(config.prefixes.alt4)) return;
+ } else if (prefixCheck() == "alt6") {
+ var args = msg.content.slice(config.prefixes.alt4.length).split(/ +/);
+ var command = args.shift().toLocaleLowerCase();
+
+ if (msg.author.bot || !msg.content.startsWith(config.prefixes.alt4)) return;
+ } else if (prefixCheck() == "alt6b") {
var args = msg.content.slice(config.prefixes.alt4b.length).split(/ +/);
var command = args.shift().toLocaleLowerCase();
diff --git a/config.json b/config.json index 6e96294..42faccc 100644 --- a/config.json +++ b/config.json @@ -6,7 +6,7 @@ "alt2":"s5n-",
"alt3":"s5nical- ",
"alt4":"s5n.",
- "alt5":"s5nnical.",
+ "alt5":"s5nical.",
"alt6":"<@!695107550403756192> ",
"alt6b":"<@695107550403756192> "
}
|