|
@@ -1,5 +1,5 @@
|
|
|
import { ICommand } from "./command";
|
|
|
-import { Dict, NeighBuilder } from "src/util";
|
|
|
+import { Dict, NeighBuilder } from "../util";
|
|
|
import { ReactionCollector, Message } from "discord.js";
|
|
|
import yaml from "yaml";
|
|
|
import { client } from "src/client";
|
|
@@ -40,6 +40,7 @@ const DURATION_MULTIPLIERS : Dict<number> = {
|
|
|
};
|
|
|
|
|
|
function parseDuration(duration: string) : number | undefined {
|
|
|
+ // Time to eat...
|
|
|
let numNB = new NeighBuilder();
|
|
|
|
|
|
let chIndex = 0;
|
|
@@ -93,7 +94,7 @@ async function createContest(msg: Message, info: ContestCreationOptions) {
|
|
|
await msg.channel.send(`${msg.author.toString()} Started contest (ID: ${contest.id})`);
|
|
|
}
|
|
|
|
|
|
-export default <ICommand>{
|
|
|
+const d = <ICommand>{
|
|
|
commands: [
|
|
|
{
|
|
|
//\s+in:\s*([^\s]+)\s+duration:\s(\d+ ?(s|d|m|y))\s+announce_winners:\s*(true|false)\s+vote_reaction:\s*([^\s])
|
|
@@ -143,4 +144,6 @@ export default <ICommand>{
|
|
|
}
|
|
|
],
|
|
|
onStart: init,
|
|
|
-};
|
|
|
+};
|
|
|
+
|
|
|
+export default {};
|