Use regex\' global flag
This commit is contained in:
parent
329faa1fd6
commit
3ab4a66488
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
@ -61,7 +61,7 @@ client.on("interactionCreate", (int) => {
|
||||||
if(int.commandName == "ping"){
|
if(int.commandName == "ping"){
|
||||||
int.reply(`Pong! (${client.ws.ping} ms)`);
|
int.reply(`Pong! (${client.ws.ping} ms)`);
|
||||||
} else if(int.commandName == "rps"){
|
} else if(int.commandName == "rps"){
|
||||||
var shape = int.options.getString("firstmove").toLowerCase().replace("", "");
|
var shape = int.options.getString("firstmove").toLowerCase().replace(//g, "");
|
||||||
if(!shapes.includes(shape)) return int.reply("That isn't a valid shape.");
|
if(!shapes.includes(shape)) return int.reply("That isn't a valid shape.");
|
||||||
var msgRow = new dc.MessageActionRow();
|
var msgRow = new dc.MessageActionRow();
|
||||||
var rockButton = new dc.MessageButton();
|
var rockButton = new dc.MessageButton();
|
||||||
|
|
Loading…
Reference in a new issue