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
|
// 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 config from './config.ts';
|
||||||
import { LOCALMODE } from './flags.ts';
|
import { LOCALMODE } from './flags.ts';
|
||||||
export const botId = getBotIdFromToken(LOCALMODE ? config.localtoken : config.token);
|
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';
|
export { Client } from 'https://deno.land/x/mysql@v2.10.2/mod.ts';
|
||||||
|
|
||||||
|
|
|
@ -9,15 +9,15 @@ import {
|
||||||
// Discordeno deps
|
// Discordeno deps
|
||||||
sendMessage,
|
sendMessage,
|
||||||
} from '../../deps.ts';
|
} from '../../deps.ts';
|
||||||
import { successColor } from '../commandUtils.ts';
|
import { infoColor1 } from '../commandUtils.ts';
|
||||||
import utils from '../utils.ts';
|
import utils from '../utils.ts';
|
||||||
|
|
||||||
export const guildCreate = (bot: Bot, guild: Guild) => {
|
export const guildCreate = (bot: Bot, guild: Guild) => {
|
||||||
log(LT.LOG, `Handling joining guild ${utils.jsonStringifyBig(guild)}`);
|
log(LT.LOG, `Handling joining guild ${utils.jsonStringifyBig(guild)}`);
|
||||||
sendMessage(bot, config.logChannel, {
|
sendMessage(bot, config.logChannel, {
|
||||||
embeds: [{
|
embeds: [{
|
||||||
title: 'New Guild Joined!',
|
title: 'Guild Joined!',
|
||||||
color: successColor,
|
color: infoColor1,
|
||||||
fields: [
|
fields: [
|
||||||
{
|
{
|
||||||
name: 'Name:',
|
name: 'Name:',
|
||||||
|
|
|
@ -4,7 +4,7 @@ import {
|
||||||
// Discordeno deps
|
// Discordeno deps
|
||||||
ActivityTypes,
|
ActivityTypes,
|
||||||
Bot,
|
Bot,
|
||||||
editBotNickname,
|
editBotMember,
|
||||||
editBotStatus,
|
editBotStatus,
|
||||||
// Log4Deno deps
|
// Log4Deno deps
|
||||||
log,
|
log,
|
||||||
|
@ -46,7 +46,7 @@ export const ready = (bot: Bot) => {
|
||||||
|
|
||||||
// setTimeout added to make sure the startup message does not error out
|
// setTimeout added to make sure the startup message does not error out
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
LOCALMODE && editBotNickname(bot, config.devServer, { nick: `LOCAL - ${config.name}` });
|
LOCALMODE && editBotMember(bot, config.devServer, { nick: `LOCAL - ${config.name}` });
|
||||||
editBotStatus(bot, {
|
editBotStatus(bot, {
|
||||||
activities: [{
|
activities: [{
|
||||||
name: 'Booting Complete',
|
name: 'Booting Complete',
|
||||||
|
|
Loading…
Reference in New Issue