mirror of
https://github.com/Burn-E99/GroupUp.git
synced 2026-06-04 08:53:49 -04:00
deno fmt + change sendMessage to bot.helpers.sendMessage
This commit is contained in:
@@ -1,20 +1,11 @@
|
||||
import config from '../../config.ts';
|
||||
import {
|
||||
// Discordeno deps
|
||||
Bot,
|
||||
Guild,
|
||||
// Log4Deno deps
|
||||
log,
|
||||
LT,
|
||||
// Discordeno deps
|
||||
sendMessage,
|
||||
} from '../../deps.ts';
|
||||
import { Bot, Guild, log, LT } from '../../deps.ts';
|
||||
import { infoColor1 } from '../commandUtils.ts';
|
||||
import utils from '../utils.ts';
|
||||
|
||||
export const guildCreate = (bot: Bot, guild: Guild) => {
|
||||
log(LT.LOG, `Handling joining guild ${utils.jsonStringifyBig(guild)}`);
|
||||
sendMessage(bot, config.logChannel, {
|
||||
bot.helpers.sendMessage(config.logChannel, {
|
||||
embeds: [{
|
||||
title: 'Guild Joined!',
|
||||
color: infoColor1,
|
||||
|
||||
@@ -1,13 +1,5 @@
|
||||
import config from '../../config.ts';
|
||||
import {
|
||||
// Discordeno deps
|
||||
Bot,
|
||||
// Log4Deno deps
|
||||
log,
|
||||
LT,
|
||||
// Discordeno deps
|
||||
sendMessage,
|
||||
} from '../../deps.ts';
|
||||
import { Bot, log, LT } from '../../deps.ts';
|
||||
import { warnColor } from '../commandUtils.ts';
|
||||
import { dbClient } from '../db.ts';
|
||||
import utils from '../utils.ts';
|
||||
@@ -23,7 +15,7 @@ export const guildDelete = async (bot: Bot, guildId: bigint) => {
|
||||
log(LT.WARN, `Failed to remove guild from DB: ${utils.jsonStringifyBig(e)}`);
|
||||
}
|
||||
|
||||
sendMessage(bot, config.logChannel, {
|
||||
bot.helpers.sendMessage(config.logChannel, {
|
||||
embeds: [{
|
||||
title: 'Removed from Guild',
|
||||
color: warnColor,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Bot, BotWithCache, Interaction } from '../../deps.ts';
|
||||
import { Bot, BotWithCache, Interaction, log, LT } from '../../deps.ts';
|
||||
import { buttons } from '../buttons/_index.ts';
|
||||
import { commands } from '../commands/_index.ts';
|
||||
import { idSeparator } from '../buttons/event-creation/utils.ts';
|
||||
@@ -23,6 +23,6 @@ export const interactionCreate = (rawBot: Bot, interaction: Interaction) => {
|
||||
return;
|
||||
}
|
||||
|
||||
console.log('interaction NOT HANDLED', interaction);
|
||||
log(LT.WARN, `interaction NOT HANDLED!!! customId: ${interaction.data.customId} name: ${interaction.data.name}`);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import config from '../../config.ts';
|
||||
import { LOCALMODE } from '../../flags.ts';
|
||||
import { ActivityTypes, Bot, BotWithCache, editBotMember, editBotStatus, log, LT, sendMessage } from '../../deps.ts';
|
||||
import { ActivityTypes, Bot, BotWithCache, editBotMember, editBotStatus, log, LT } from '../../deps.ts';
|
||||
import { getRandomStatus, successColor } from '../commandUtils.ts';
|
||||
import utils from '../utils.ts';
|
||||
|
||||
@@ -45,7 +45,7 @@ export const ready = (rawBot: Bot) => {
|
||||
}],
|
||||
status: 'online',
|
||||
});
|
||||
sendMessage(bot, config.logChannel, {
|
||||
bot.helpers.sendMessage(config.logChannel, {
|
||||
embeds: [{
|
||||
title: `${config.name} is now Online`,
|
||||
color: successColor,
|
||||
|
||||
Reference in New Issue
Block a user