mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 14:19:56 +02:00
Add bananas unit once
This commit is contained in:
@@ -2,6 +2,7 @@ require('dotenv').config();
|
|||||||
const { XIAO_TOKEN, OWNERS, XIAO_PREFIX, INVITE } = process.env;
|
const { XIAO_TOKEN, OWNERS, XIAO_PREFIX, INVITE } = process.env;
|
||||||
const { mkdir } = require('fs/promises');
|
const { mkdir } = require('fs/promises');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
const mathjs = require('mathjs');
|
||||||
const { GatewayIntentBits, Partials, AllowedMentionsTypes, PermissionFlagsBits, EmbedBuilder } = require('discord.js');
|
const { GatewayIntentBits, Partials, AllowedMentionsTypes, PermissionFlagsBits, EmbedBuilder } = require('discord.js');
|
||||||
const Client = require('./structures/Client');
|
const Client = require('./structures/Client');
|
||||||
const client = new Client({
|
const client = new Client({
|
||||||
@@ -235,6 +236,12 @@ client.on('ready', async () => {
|
|||||||
client.logger.error(`[TIMEZONES] Failed to set timezones\n${err.stack}`);
|
client.logger.error(`[TIMEZONES] Failed to set timezones\n${err.stack}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Add bananas unit to mathjs
|
||||||
|
math.createUnit('banana', {
|
||||||
|
definition: '0.178 meters',
|
||||||
|
aliases: ['bananas']
|
||||||
|
});
|
||||||
|
|
||||||
// Fetch adult site list
|
// Fetch adult site list
|
||||||
try {
|
try {
|
||||||
await client.fetchAdultSiteList();
|
await client.fetchAdultSiteList();
|
||||||
|
|||||||
@@ -2,10 +2,6 @@ const Command = require('../../framework/Command');
|
|||||||
const math = require('mathjs');
|
const math = require('mathjs');
|
||||||
const { stripIndents } = require('common-tags');
|
const { stripIndents } = require('common-tags');
|
||||||
const { formatNumber } = require('../../util/Util');
|
const { formatNumber } = require('../../util/Util');
|
||||||
math.createUnit('banana', {
|
|
||||||
definition: '0.178 meters',
|
|
||||||
aliases: ['bananas']
|
|
||||||
});
|
|
||||||
|
|
||||||
module.exports = class UnitsCommand extends Command {
|
module.exports = class UnitsCommand extends Command {
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
|
|||||||
Reference in New Issue
Block a user