mirror of
https://github.com/Burn-E99/SweeperBot.git
synced 2026-06-04 07:53:50 -04:00
deno fmt, add functions section
This commit is contained in:
2
flags.ts
2
flags.ts
@@ -3,4 +3,4 @@ export const DEVMODE = false;
|
||||
// DEBUG is used to toggle the cmdPrompt
|
||||
export const DEBUG = false;
|
||||
// LOCALMODE is used to run a differnt bot token for local testing
|
||||
export const LOCALMODE = false;
|
||||
export const LOCALMODE = true;
|
||||
|
||||
4
mod.ts
4
mod.ts
@@ -8,10 +8,10 @@ import config from './config.ts';
|
||||
import { DEBUG, LOCALMODE } from './flags.ts';
|
||||
import {
|
||||
// Discordeno deps
|
||||
createBot,
|
||||
initLog,
|
||||
Intents,
|
||||
startBot,
|
||||
createBot,
|
||||
} from './deps.ts';
|
||||
// import { dbClient, ignoreList } from './src/db.ts';
|
||||
import { events } from './src/events.ts';
|
||||
@@ -26,4 +26,4 @@ const bot = createBot({
|
||||
events,
|
||||
});
|
||||
|
||||
startBot(bot);
|
||||
startBot(bot);
|
||||
|
||||
@@ -13,5 +13,5 @@ events.guildDelete = eventHandlers.guildDelete;
|
||||
events.messageCreate = eventHandlers.messageCreate;
|
||||
|
||||
if (DEVMODE) {
|
||||
events.debug = eventHandlers.debug
|
||||
events.debug = eventHandlers.debug;
|
||||
}
|
||||
|
||||
@@ -5,4 +5,4 @@ import {
|
||||
} from '../../deps.ts';
|
||||
import utils from '../utils.ts';
|
||||
|
||||
export const debug = (dmsg: string) => log(LT.LOG, `Debug Message | ${utils.jsonStringifyBig(dmsg)}`);
|
||||
export const debug = (dmsg: string) => log(LT.LOG, `Debug Message | ${utils.jsonStringifyBig(dmsg)}`);
|
||||
|
||||
@@ -2,11 +2,12 @@ import config from '../../config.ts';
|
||||
import {
|
||||
// Discordeno deps
|
||||
Bot,
|
||||
Message,
|
||||
botId,
|
||||
// Log4Deno deps
|
||||
log,
|
||||
LT,
|
||||
// Discordeno deps
|
||||
Message,
|
||||
} from '../../deps.ts';
|
||||
import commands from '../commands/_index.ts';
|
||||
import utils from '../utils.ts';
|
||||
|
||||
@@ -2,8 +2,8 @@ import config from '../../config.ts';
|
||||
import { LOCALMODE } from '../../flags.ts';
|
||||
import {
|
||||
// Discordeno deps
|
||||
Bot,
|
||||
ActivityTypes,
|
||||
Bot,
|
||||
editBotNickname,
|
||||
editBotStatus,
|
||||
// Log4Deno deps
|
||||
|
||||
1
src/functions/_index.ts
Normal file
1
src/functions/_index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export default {};
|
||||
Reference in New Issue
Block a user