cleanup
This commit is contained in:
parent
bf3c218094
commit
dbf3dd8ed9
@ -231,11 +231,14 @@ class DiscordClient extends Client
|
|||||||
// Needs to load in after connecting to discord
|
// Needs to load in after connecting to discord
|
||||||
await this.#moderationManager.initialise();
|
await this.#moderationManager.initialise();
|
||||||
|
|
||||||
this.setActivity();
|
if (this.shardId === 0)
|
||||||
this.#activityInterval = setInterval(() =>
|
|
||||||
{
|
{
|
||||||
this.setActivity();
|
this.setActivity();
|
||||||
}, Util.random(5, 10) * 60 * 60 * 1000);
|
this.#activityInterval = setInterval(() =>
|
||||||
|
{
|
||||||
|
this.setActivity();
|
||||||
|
}, Util.random(5, 10) * 60 * 60 * 1000);
|
||||||
|
}
|
||||||
|
|
||||||
this.#built = true;
|
this.#built = true;
|
||||||
this.emit('built');
|
this.emit('built');
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
import { Client, TextChannel, version } from 'discord.js';
|
import { Client, TextChannel, version } from 'discord.js';
|
||||||
import { CommandOptionType } from '../../../../../@types/Client.js';
|
|
||||||
import DiscordClient from '../../../DiscordClient.js';
|
import DiscordClient from '../../../DiscordClient.js';
|
||||||
import SlashCommand from '../../../interfaces/commands/SlashCommand.js';
|
import SlashCommand from '../../../interfaces/commands/SlashCommand.js';
|
||||||
import InvokerWrapper from '../../wrappers/InvokerWrapper.js';
|
import InvokerWrapper from '../../wrappers/InvokerWrapper.js';
|
||||||
@ -17,16 +16,7 @@ class StatsCommand extends SlashCommand
|
|||||||
aliases: [ ],
|
aliases: [ ],
|
||||||
description: 'Statistics about the bot',
|
description: 'Statistics about the bot',
|
||||||
// restricted: true,
|
// restricted: true,
|
||||||
options: [
|
options: [ ],
|
||||||
{
|
|
||||||
name: 'log',
|
|
||||||
type: CommandOptionType.BOOLEAN,
|
|
||||||
description: 'Logs the output in the console.',
|
|
||||||
flag: true,
|
|
||||||
valueOptional: true,
|
|
||||||
defaultValue: true
|
|
||||||
}
|
|
||||||
],
|
|
||||||
clientPermissions: [ 'SendMessages', 'EmbedLinks' ],
|
clientPermissions: [ 'SendMessages', 'EmbedLinks' ],
|
||||||
showUsage: false,
|
showUsage: false,
|
||||||
archivable: false
|
archivable: false
|
||||||
@ -36,8 +26,6 @@ class StatsCommand extends SlashCommand
|
|||||||
// eslint-disable-next-line max-lines-per-function
|
// eslint-disable-next-line max-lines-per-function
|
||||||
async execute (invoker: InvokerWrapper)
|
async execute (invoker: InvokerWrapper)
|
||||||
{
|
{
|
||||||
// TODO:
|
|
||||||
// Add some stuff that only shows when a dev runs the command, for instance amount of cached messages etc
|
|
||||||
const shard = this.client.shard!;
|
const shard = this.client.shard!;
|
||||||
const author = await invoker.userWrapper();
|
const author = await invoker.userWrapper();
|
||||||
if (!author)
|
if (!author)
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
Privacy Policy
|
Privacy Policy
|
||||||
|
|
||||||
[COMMAND_PRIVACY_POLICY]
|
[COMMAND_PRIVACY_POLICY]
|
||||||
Galactic (stable) and Galactic Canary (testing) bots collect and store IDs in moderation logs and configuration. Message content is only ever stored by the bot when it is obvious from the use case to do so (typically this would be a configuration for something like a template message). Message content is not stored outside of the bot's working memory and never leaves the Discord context (except for the aforementioned case). Any message logs are purely based on output in channels at this time.
|
Galactic (stable) and Galactic Beta/Canary (testing) bots collect and store IDs in moderation logs and configuration. Message content is only ever stored by the bot when it is obvious from the use case to do so (typically this would be a configuration for something like a template message). Message content is not stored outside of the bot's working memory and never leaves the Discord context (except for the aforementioned case). Any message logs are purely based on output in channels at this time.
|
||||||
|
|
||||||
This text will be updated according should this ever change.
|
This text will be updated according should this ever change.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user