feat: rockpaperscissors fixed pog

This commit is contained in:
2022-10-28 18:39:36 +02:00
parent 0e65bf6ae0
commit 83b99baba2
4 changed files with 9 additions and 14 deletions

View File

@@ -1,10 +1,7 @@
import { commandModule, CommandType } from '@sern/handler'
import { Context, SlashOptions } from "@sern/handler";
import axios from "axios";
import { ActionRowBuilder, APIMessageActionRowComponent, ApplicationCommandOptionType, ButtonBuilder, ButtonStyle, ComponentType, EmbedBuilder, GuildMember } from "discord.js";
import { ActionRowBuilder, ApplicationCommandOptionType, ButtonBuilder, ButtonStyle, ComponentType, EmbedBuilder, GuildMember } from "discord.js";
import { publish } from "../../src/plugins/publish.js";
import rockpaperscissors from "rockpaperscissors-checker";
import { setNonEnumerableProperties } from "got/dist/source";
export default commandModule({
name: 'rps',

View File

@@ -1,7 +1,5 @@
import { SernEmitter } from "@sern/handler";
import axios from "axios";
import { ActivityType, TextChannel, EmbedBuilder, Message, VoiceBasedChannel } from "discord.js";
import { DOMParser } from "@xmldom/xmldom";
import { Client, GatewayIntentBits } from "discord.js";
import { Sern } from "@sern/handler"
import 'dotenv/config'

14
package-lock.json generated
View File

@@ -24,7 +24,7 @@
"libsodium-wrappers": "^0.7.10",
"mongoose": "^6.5.1",
"pretty-seconds-spanish": "^2.1.0",
"rockpaperscissors-checker": "^1.0.1",
"rockpaperscissors-checker": "^1.1.5",
"systeminformation": "^5.12.6"
},
"devDependencies": {
@@ -2152,9 +2152,9 @@
}
},
"node_modules/rockpaperscissors-checker": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/rockpaperscissors-checker/-/rockpaperscissors-checker-1.1.2.tgz",
"integrity": "sha512-JggFGYsIoRTqJhgrof2DmNEzbuhD7TuETukt7idAf4tiCgbR3H7vdy/sPWWhfIzTnwBMthmWgL/7lJKRY9A5SQ=="
"version": "1.1.5",
"resolved": "https://registry.npmjs.org/rockpaperscissors-checker/-/rockpaperscissors-checker-1.1.5.tgz",
"integrity": "sha512-rhZBji+Iaq+YrHNK6W2mKWWt1A1RQ2eRWy8YiGj9XYFDNlxL1UDACSv7HmkDpusT2kNHd/YvY8OOosNi10n3DA=="
},
"node_modules/rss-parser": {
"version": "3.12.0",
@@ -4217,9 +4217,9 @@
}
},
"rockpaperscissors-checker": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/rockpaperscissors-checker/-/rockpaperscissors-checker-1.1.2.tgz",
"integrity": "sha512-JggFGYsIoRTqJhgrof2DmNEzbuhD7TuETukt7idAf4tiCgbR3H7vdy/sPWWhfIzTnwBMthmWgL/7lJKRY9A5SQ=="
"version": "1.1.5",
"resolved": "https://registry.npmjs.org/rockpaperscissors-checker/-/rockpaperscissors-checker-1.1.5.tgz",
"integrity": "sha512-rhZBji+Iaq+YrHNK6W2mKWWt1A1RQ2eRWy8YiGj9XYFDNlxL1UDACSv7HmkDpusT2kNHd/YvY8OOosNi10n3DA=="
},
"rss-parser": {
"version": "3.12.0",

View File

@@ -41,7 +41,7 @@
"libsodium-wrappers": "^0.7.10",
"mongoose": "^6.5.1",
"pretty-seconds-spanish": "^2.1.0",
"rockpaperscissors-checker": "^1.0.1",
"rockpaperscissors-checker": "^1.1.5",
"systeminformation": "^5.12.6"
},
"devDependencies": {