Fixed bug in ad posting
This commit is contained in:
parent
5c57cb7666
commit
9d92557705
|
@ -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;
|
||||
|
||||
|
|
|
@ -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())
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue