Added the ability to collect spam with a ommand, cleaned up the code and modified the LISCENCE.md file

This commit is contained in:
ION606
2022-07-08 17:09:36 +03:00
parent e03b689d6d
commit 919a7f62dc
7 changed files with 36 additions and 21 deletions
+4 -7
View File
@@ -17,15 +17,12 @@ function checkResponses(convoOG, answer) {
if (b === 'pay') {
//Exctract the number
var amt = convoOG.match(/(\d+)/)[0];
// var amt = convoOG.match(/(\d+)/)[0];
// currency = convoOG[convoOG.indexOf(amt) - 1];
if (matches) {
currency = convoOG[convoOG.indexOf(amt) - 1];
//Do something with pay API to get the amount here
}
return ('Use _!premium_ to get Selmer Bot Premium now!');
} else if (b == 'name') {
return 'My name is Selmer Bot!';
return ('My name is Selmer Bot!');
} else { return null; }
return b;