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:
@@ -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:',
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user