From e58665c070667b8d5024f92f80cf324ff5ab4837 Mon Sep 17 00:00:00 2001 From: Adrien Nunes <adrien.nunes@ensiie.fr> Date: Thu, 6 Jan 2022 02:16:20 +0100 Subject: [PATCH] Add infocovid to parser --- commands/CommandInfoCovid.js | 2 +- commands/CommandParser.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/commands/CommandInfoCovid.js b/commands/CommandInfoCovid.js index ce6b03b..f615547 100644 --- a/commands/CommandInfoCovid.js +++ b/commands/CommandInfoCovid.js @@ -96,4 +96,4 @@ class CommandInfoCovid{ } } -module.exports = CommandQui; \ No newline at end of file +module.exports = CommandInfoCovid; \ No newline at end of file diff --git a/commands/CommandParser.js b/commands/CommandParser.js index 362ec93..3bf83fc 100644 --- a/commands/CommandParser.js +++ b/commands/CommandParser.js @@ -3,6 +3,7 @@ const DatabaseCommand = require('./DatabaseCommand.js'); const CommandVoteParser = require('./CommandVoteParser.js'); const CommandQui = require('./CommandQui.js'); const CommandPourquoi = require('./CommandPourquoi.js'); +const CommandInfoCovid = require('./CommandInfoCovid.js'); class CommandParser { @@ -14,6 +15,7 @@ class CommandParser { this.commandVoteParser = new CommandVoteParser(voteParser); this.commandQui = new CommandQui(client); this.commandPourquoi = new CommandPourquoi(client); + this.commandInfoCovid = new CommandInfoCovid(client); } parse(message) { @@ -23,6 +25,7 @@ class CommandParser { this.commandVoteParser.parse(message); this.commandQui.parse(message); this.commandPourquoi.parse(message); + this.commandInfoCovid.parse(message); } } } -- GitLab