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
|
||||
await this.#moderationManager.initialise();
|
||||
|
||||
if (this.shardId === 0)
|
||||
{
|
||||
this.setActivity();
|
||||
this.#activityInterval = setInterval(() =>
|
||||
{
|
||||
this.setActivity();
|
||||
}, Util.random(5, 10) * 60 * 60 * 1000);
|
||||
}
|
||||
|
||||
this.#built = true;
|
||||
this.emit('built');
|
||||
|
@ -1,5 +1,4 @@
|
||||
import { Client, TextChannel, version } from 'discord.js';
|
||||
import { CommandOptionType } from '../../../../../@types/Client.js';
|
||||
import DiscordClient from '../../../DiscordClient.js';
|
||||
import SlashCommand from '../../../interfaces/commands/SlashCommand.js';
|
||||
import InvokerWrapper from '../../wrappers/InvokerWrapper.js';
|
||||
@ -17,16 +16,7 @@ class StatsCommand extends SlashCommand
|
||||
aliases: [ ],
|
||||
description: 'Statistics about the bot',
|
||||
// restricted: true,
|
||||
options: [
|
||||
{
|
||||
name: 'log',
|
||||
type: CommandOptionType.BOOLEAN,
|
||||
description: 'Logs the output in the console.',
|
||||
flag: true,
|
||||
valueOptional: true,
|
||||
defaultValue: true
|
||||
}
|
||||
],
|
||||
options: [ ],
|
||||
clientPermissions: [ 'SendMessages', 'EmbedLinks' ],
|
||||
showUsage: false,
|
||||
archivable: false
|
||||
@ -36,8 +26,6 @@ class StatsCommand extends SlashCommand
|
||||
// eslint-disable-next-line max-lines-per-function
|
||||
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 author = await invoker.userWrapper();
|
||||
if (!author)
|
||||
|
@ -2,7 +2,7 @@
|
||||
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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user