mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 15:07:42 +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 { mkdir } = require('fs/promises');
|
||||
const path = require('path');
|
||||
const mathjs = require('mathjs');
|
||||
const { GatewayIntentBits, Partials, AllowedMentionsTypes, PermissionFlagsBits, EmbedBuilder } = require('discord.js');
|
||||
const Client = require('./structures/Client');
|
||||
const client = new Client({
|
||||
@@ -235,6 +236,12 @@ client.on('ready', async () => {
|
||||
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
|
||||
try {
|
||||
await client.fetchAdultSiteList();
|
||||
|
||||
@@ -2,10 +2,6 @@ const Command = require('../../framework/Command');
|
||||
const math = require('mathjs');
|
||||
const { stripIndents } = require('common-tags');
|
||||
const { formatNumber } = require('../../util/Util');
|
||||
math.createUnit('banana', {
|
||||
definition: '0.178 meters',
|
||||
aliases: ['bananas']
|
||||
});
|
||||
|
||||
module.exports = class UnitsCommand extends Command {
|
||||
constructor(client) {
|
||||
|
||||
Reference in New Issue
Block a user