mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 14:19:56 +02:00
Rename B command, better balloon pop, change things out of other
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
const { Command } = require('discord.js-commando');
|
const { Command } = require('discord.js-commando');
|
||||||
const { verify } = require('../../util/Util');
|
const { randomRange, verify } = require('../../util/Util');
|
||||||
|
|
||||||
module.exports = class BalloonPopCommand extends Command {
|
module.exports = class BalloonPopCommand extends Command {
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
@@ -49,9 +49,9 @@ module.exports = class BalloonPopCommand extends Command {
|
|||||||
}
|
}
|
||||||
if (pump) {
|
if (pump) {
|
||||||
await msg.say(`${user} pumps the balloon!`);
|
await msg.say(`${user} pumps the balloon!`);
|
||||||
remains -= 50;
|
remains -= randomRange(25, 75);
|
||||||
const popped = !Math.floor(Math.random() * (remains < 0 ? 2 : remains));
|
const popped = Math.floor(Math.random() * remains);
|
||||||
if (popped) {
|
if (popped < 0) {
|
||||||
await msg.say('The balloon pops!');
|
await msg.say('The balloon pops!');
|
||||||
winner = userTurn ? opponent : msg.author;
|
winner = userTurn ? opponent : msg.author;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ module.exports = class SpoopyLinkCommand extends Command {
|
|||||||
constructor(client) {
|
constructor(client) {
|
||||||
super(client, {
|
super(client, {
|
||||||
name: 'spoopy-link',
|
name: 'spoopy-link',
|
||||||
group: 'other',
|
group: 'search',
|
||||||
memberName: 'spoopy-link',
|
memberName: 'spoopy-link',
|
||||||
description: 'Determines if a link is spoopy or not.',
|
description: 'Determines if a link is spoopy or not.',
|
||||||
args: [
|
args: [
|
||||||
@@ -7,7 +7,7 @@ module.exports = class ShortenURLCommand extends Command {
|
|||||||
super(client, {
|
super(client, {
|
||||||
name: 'shorten-url',
|
name: 'shorten-url',
|
||||||
aliases: ['short-url', 'url-shorten'],
|
aliases: ['short-url', 'url-shorten'],
|
||||||
group: 'other',
|
group: 'text-edit',
|
||||||
memberName: 'shorten-url',
|
memberName: 'shorten-url',
|
||||||
description: 'Creates a goo.gl short URL from another URL.',
|
description: 'Creates a goo.gl short URL from another URL.',
|
||||||
args: [
|
args: [
|
||||||
@@ -3,10 +3,9 @@ const { Command } = require('discord.js-commando');
|
|||||||
module.exports = class BCommand extends Command {
|
module.exports = class BCommand extends Command {
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
super(client, {
|
super(client, {
|
||||||
name: 'b',
|
name: '🅱',
|
||||||
aliases: ['🅱'],
|
|
||||||
group: 'text-edit',
|
group: 'text-edit',
|
||||||
memberName: 'b',
|
memberName: '🅱',
|
||||||
description: 'Replaces b with 🅱.',
|
description: 'Replaces b with 🅱.',
|
||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiao",
|
"name": "xiao",
|
||||||
"version": "60.3.0",
|
"version": "61.0.0",
|
||||||
"description": "Your personal server companion.",
|
"description": "Your personal server companion.",
|
||||||
"main": "Xiao.js",
|
"main": "Xiao.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user