Commit 6c98a4e5 authored by evgen moruzhenko's avatar evgen moruzhenko

changed project structure

parent 053538d6
import { Module } from '@nestjs/common';
import { BotModule } from './bot/bot.module';
import { DiscordBotModule } from './discord-bot/discord-bot.module';
@Module({
controllers: [],
providers: [],
imports: [BotModule],
imports: [DiscordBotModule],
})
export class AppModule {}
......@@ -2,11 +2,11 @@ import { Injectable, Logger } from '@nestjs/common';
import { Once, ClientProvider, Client, OnCommand } from 'discord-nestjs';
import { Message, MessageEmbed } from 'discord.js';
import game from './tic-tac-toe/game';
import game from '../tic-tac-toe/game';
@Injectable()
export class BotGateway {
private readonly logger = new Logger(BotGateway.name);
export class DiscordBotGateway {
private readonly logger = new Logger(DiscordBotGateway.name);
@Client()
discordProvider: ClientProvider;
......
import { Module } from '@nestjs/common';
import { DiscordModule } from 'discord-nestjs';
import { BotGateway } from './bot.gateway';
import { DiscordBotGateway } from './discord-bot.gateway';
import { DiscordConfigService } from '../configs/discord.config';
......@@ -11,6 +11,6 @@ import { DiscordConfigService } from '../configs/discord.config';
useClass: DiscordConfigService,
}),
],
providers: [BotGateway],
providers: [DiscordBotGateway],
})
export class BotModule {}
export class DiscordBotModule {}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment