Fixed bug in ad posting

This commit is contained in:
Mr. Stallion 2019-06-07 16:42:25 -05:00
parent 5c57cb7666
commit 9d92557705
2 changed files with 5 additions and 3 deletions

View File

@ -2,9 +2,9 @@ import { Conversation } from './interfaces';
export class AdManager {
static readonly POSTING_PERIOD = 3 * 60 * 60 * 1000;
static readonly START_VARIANCE = 3 * 60 * 1000;
static readonly POST_VARIANCE = 10 * 60 * 1000;
static readonly POST_DELAY = 2 * 60 * 1000;
static readonly START_VARIANCE = 2 * 60 * 1000;
static readonly POST_VARIANCE = 7 * 60 * 1000;
static readonly POST_DELAY = 1 * 60 * 1000;
private conversation: Conversation;

View File

@ -343,6 +343,8 @@ class ChannelConversation extends Conversation implements Interfaces.ChannelConv
if (text.length < 1)
return;
core.connection.send('LRP', {channel: this.channel.id, message: text});
await this.addMessage(
createMessage(MessageType.Ad, core.characters.ownCharacter, text, new Date())
);