1
0
mirror of https://github.com/Burn-E99/SweeperBot.git synced 2026-06-04 07:53:50 -04:00

Update to DDv14

This commit is contained in:
Ean Milligan (Bastion)
2022-09-08 22:32:31 -04:00
parent 046eb1d33e
commit 6a52603be1
3 changed files with 8 additions and 8 deletions

View File

@@ -9,15 +9,15 @@ import {
// Discordeno deps
sendMessage,
} from '../../deps.ts';
import { successColor } from '../commandUtils.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, {
embeds: [{
title: 'New Guild Joined!',
color: successColor,
title: 'Guild Joined!',
color: infoColor1,
fields: [
{
name: 'Name:',

View File

@@ -4,7 +4,7 @@ import {
// Discordeno deps
ActivityTypes,
Bot,
editBotNickname,
editBotMember,
editBotStatus,
// Log4Deno deps
log,
@@ -46,7 +46,7 @@ export const ready = (bot: Bot) => {
// setTimeout added to make sure the startup message does not error out
setTimeout(() => {
LOCALMODE && editBotNickname(bot, config.devServer, { nick: `LOCAL - ${config.name}` });
LOCALMODE && editBotMember(bot, config.devServer, { nick: `LOCAL - ${config.name}` });
editBotStatus(bot, {
activities: [{
name: 'Booting Complete',