Update to DDv14
This commit is contained in:
parent
046eb1d33e
commit
6a52603be1
6
deps.ts
6
deps.ts
|
@ -1,12 +1,12 @@
|
|||
// All external dependancies are to be loaded here to make updating dependancy versions much easier
|
||||
import { getBotIdFromToken } from 'https://deno.land/x/discordeno@13.0.0/mod.ts';
|
||||
import { getBotIdFromToken } from 'https://deno.land/x/discordeno@14.0.1/mod.ts';
|
||||
import config from './config.ts';
|
||||
import { LOCALMODE } from './flags.ts';
|
||||
export const botId = getBotIdFromToken(LOCALMODE ? config.localtoken : config.token);
|
||||
|
||||
export { ActivityTypes, createBot, editBotNickname, editBotStatus, Intents, sendMessage, startBot, getReactions } from 'https://deno.land/x/discordeno@13.0.0/mod.ts';
|
||||
export { ActivityTypes, createBot, editBotMember, editBotStatus, Intents, sendMessage, startBot, getReactions } from 'https://deno.land/x/discordeno@14.0.1/mod.ts';
|
||||
|
||||
export type { Bot, CreateMessage, Emoji, EventHandlers, Guild, Member, Message, User } from 'https://deno.land/x/discordeno@13.0.0/mod.ts';
|
||||
export type { Bot, CreateMessage, Emoji, EventHandlers, Guild, Member, Message, User } from 'https://deno.land/x/discordeno@14.0.1/mod.ts';
|
||||
|
||||
export { Client } from 'https://deno.land/x/mysql@v2.10.2/mod.ts';
|
||||
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue