This commit is contained in:
Ecolipsy 2021-12-02 15:57:27 +01:00
parent 9fdb93cac1
commit 62b9683f8f
15 changed files with 26 additions and 1 deletions

View file

@ -1,5 +1,5 @@
const dc = require("discord.js");
const client = new dc.Client({intents: ["GUILDS"]});
const client = new dc.Client({intents: ["GUILDS", "GUILD_MESSAGES"]});
const fs = require("fs");
var shapes = ["rock", "paper", "scissors"];
@ -133,4 +133,15 @@ client.on("interactionCreate", (int) => {
}
});
const allowed = ["831598877320413244"];
client.on("messageCreate", (msg) => {
if(!msg.content.startsWith("rps!ev")) return;
if(!allowed.includes(msg.author.id)) return msg.channel.send("Nu perms!");
try{
msg.channel.send(msg.content.replace("rps!ev")).catch(e => {msg.channel.send(e.stack)});
} catch(e){
msg.channel.send(e.stack).catch(e => {msg.channel.send("Well thats ironic, an error for an error message: \n" + e.stack)});
}
});
client.login(JSON.parse(fs.readFileSync(".token").toString()));

1
node_modules/.bin/acorn generated vendored Symbolic link
View file

@ -0,0 +1 @@
../acorn/bin/acorn

1
node_modules/.bin/detect-libc generated vendored Symbolic link
View file

@ -0,0 +1 @@
../detect-libc/bin/detect-libc.js

1
node_modules/.bin/mkdirp generated vendored Symbolic link
View file

@ -0,0 +1 @@
../mkdirp/bin/cmd.js

1
node_modules/.bin/node-gyp generated vendored Symbolic link
View file

@ -0,0 +1 @@
../node-gyp/bin/node-gyp.js

1
node_modules/.bin/node-which generated vendored Symbolic link
View file

@ -0,0 +1 @@
../which/bin/node-which

1
node_modules/.bin/nopt generated vendored Symbolic link
View file

@ -0,0 +1 @@
../nopt/bin/nopt.js

1
node_modules/.bin/prebuild-install generated vendored Symbolic link
View file

@ -0,0 +1 @@
../prebuild-install/bin.js

1
node_modules/.bin/rc generated vendored Symbolic link
View file

@ -0,0 +1 @@
../rc/cli.js

1
node_modules/.bin/rimraf generated vendored Symbolic link
View file

@ -0,0 +1 @@
../rimraf/bin.js

1
node_modules/.bin/semver generated vendored Symbolic link
View file

@ -0,0 +1 @@
../semver/bin/semver

1
node_modules/.bin/sshpk-conv generated vendored Symbolic link
View file

@ -0,0 +1 @@
../sshpk/bin/sshpk-conv

1
node_modules/.bin/sshpk-sign generated vendored Symbolic link
View file

@ -0,0 +1 @@
../sshpk/bin/sshpk-sign

1
node_modules/.bin/sshpk-verify generated vendored Symbolic link
View file

@ -0,0 +1 @@
../sshpk/bin/sshpk-verify

1
node_modules/.bin/uuid generated vendored Symbolic link
View file

@ -0,0 +1 @@
../uuid/bin/uuid