Fix bug where the bot thinks a stickerpack is still in progress
This commit is contained in:
parent
ff34d62477
commit
4e66a0afd7
|
@ -4,6 +4,7 @@ import { GatherStickersStage } from "./GatherStickersStage";
|
|||
import * as randomString from "random-string";
|
||||
import config from "../config";
|
||||
import { StickerMetadata, StickerStore } from "../db/StickerStore";
|
||||
import { BuilderRegistry } from "../bot/BuilderRegistry";
|
||||
|
||||
|
||||
export class NewPackBuilder implements StickerPackBuilder {
|
||||
|
@ -51,6 +52,7 @@ export class NewPackBuilder implements StickerPackBuilder {
|
|||
const slug = `pack/${creatorId}/${packId}`;
|
||||
const baseUrl = config.webserver.publicUrl;
|
||||
const url = (baseUrl.endsWith("/") ? baseUrl : baseUrl + "/") + slug;
|
||||
return this.client.sendNotice(this.roomId, "Awesome! I've created your sticker pack and published it here: " + url);
|
||||
await this.client.sendNotice(this.roomId, "Awesome! I've created your sticker pack and published it here: " + url);
|
||||
BuilderRegistry.deregister(this.roomId);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue