Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ BOT_ID=
MASTER_ID=
SERVER_ID=
SERVER_NAME=
LANGUAGE= (Examples: nl-NL or en-GB, see code/lang for options)

LOG_CHANNEL_ID=
SUGGESTIONS_CHANNEL_ID=
Expand Down
1 change: 1 addition & 0 deletions code/src/Constants/SettingsConstants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export default class SettingsConstants {
public static readonly MASTER_ID = process.env.MASTER_ID || '';
public static readonly SERVER_ID = process.env.SERVER_ID || '';
public static readonly SERVER_NAME = process.env.SERVER_NAME || '';
public static readonly LANGUAGE = process.env.LANGUAGE || 'nl-NL';

public static readonly CHANNELS = {
LOG_ID: process.env.LOG_CHANNEL_ID || '',
Expand Down
4 changes: 4 additions & 0 deletions code/src/Index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
import LanguageLoader from "./Utils/LanguageLoader";

require('dotenv').config();

import './Utils/MonkeyPatches';
import BotManager from './Managers/BotManager';
import Discord from './Providers/Discord';
import SettingsConstants from "./Constants/SettingsConstants";

class Main {

constructor() {
LanguageLoader.LoadLanguageConfig(SettingsConstants.LANGUAGE)
Discord.SetEventReadyCallback(BotManager.OnReady);
Discord.SetEventReactionAddCallback(BotManager.OnReactionAdd);
Discord.SetEventThreadCreateCallback(BotManager.OnThreadCreate);
Expand Down