fix: fixed weekstamp
Signed-off-by: moonleay <contact@moonleay.net>
This commit is contained in:
parent
b258747086
commit
925398db65
1 changed files with 2 additions and 1 deletions
|
@ -94,6 +94,7 @@ object TimeManager : IFeature {
|
||||||
if (Bot.bot.kordRef.getChannel(ch) == null)
|
if (Bot.bot.kordRef.getChannel(ch) == null)
|
||||||
continue // TODO: Check if the channel is valid in another shard
|
continue // TODO: Check if the channel is valid in another shard
|
||||||
val c = Bot.bot.kordRef.getChannelOf<MessageChannel>(ch)!!
|
val c = Bot.bot.kordRef.getChannelOf<MessageChannel>(ch)!!
|
||||||
|
msgStr = ""
|
||||||
if (roleMap != null && roleMap.keys.contains(ch) && roleMap[ch] != null) {
|
if (roleMap != null && roleMap.keys.contains(ch) && roleMap[ch] != null) {
|
||||||
c.createMessage {
|
c.createMessage {
|
||||||
this.content =
|
this.content =
|
||||||
|
@ -152,7 +153,7 @@ object TimeManager : IFeature {
|
||||||
TimePlanningMessages.insert {
|
TimePlanningMessages.insert {
|
||||||
it[TimePlanningMessages.serverid] = c.data.guildId.value.toString()
|
it[TimePlanningMessages.serverid] = c.data.guildId.value.toString()
|
||||||
it[TimePlanningMessages.channelid] = c.id.value.toString()
|
it[TimePlanningMessages.channelid] = c.id.value.toString()
|
||||||
it[TimePlanningMessages.weekstamp] = TimeUtil.getWeekStamp().toOffsetDateTime().toString()
|
it[TimePlanningMessages.weekstamp] = (TimeUtil.getWeekStamp().toEpochSecond() * 1000).toString()
|
||||||
it[TimePlanningMessages.messageids] = msgStr
|
it[TimePlanningMessages.messageids] = msgStr
|
||||||
} get TimePlanningMessages.id
|
} get TimePlanningMessages.id
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue