forked from DiscordBots/lilJudd
fix: fixed issue with the bot not sending the Time planner, fixed issue with not being able to add your self to the lists
Signed-off-by: limited_dev <loginakkisativ@gmail.com>
This commit is contained in:
parent
127ec3147b
commit
9a1154b272
3 changed files with 3 additions and 7 deletions
|
@ -32,7 +32,7 @@ val ownerID = 372703841151614976L
|
||||||
group = "net.moonleay.liljudd"
|
group = "net.moonleay.liljudd"
|
||||||
version = System.getenv("CI_COMMIT_TAG")?.let { "$it-${System.getenv("CI_COMMIT_SHORT_SHA")}-prod" }
|
version = System.getenv("CI_COMMIT_TAG")?.let { "$it-${System.getenv("CI_COMMIT_SHORT_SHA")}-prod" }
|
||||||
?: System.getenv("CI_COMMIT_SHORT_SHA")?.let { "$it-dev" }
|
?: System.getenv("CI_COMMIT_SHORT_SHA")?.let { "$it-dev" }
|
||||||
?: "2.1.0"
|
?: "2.1.0.3"
|
||||||
|
|
||||||
val kordver = "1.5.6"
|
val kordver = "1.5.6"
|
||||||
val coroutinesver = "1.1.0"
|
val coroutinesver = "1.1.0"
|
||||||
|
|
|
@ -64,8 +64,8 @@ object TimePlanner {
|
||||||
}
|
}
|
||||||
Logger.out("${channelList.count()} Channels to notify!")
|
Logger.out("${channelList.count()} Channels to notify!")
|
||||||
for (ch in channelList) {
|
for (ch in channelList) {
|
||||||
if (Bot.bot.kordRef.getChannel(ch)!!.asChannelOrNull() == null)
|
if (Bot.bot.kordRef.getChannel(ch) == null)
|
||||||
return@doInfinity
|
continue // TODO: Remove from DB
|
||||||
val c = Bot.bot.kordRef.getChannelOf<MessageChannel>(ch)!!
|
val c = Bot.bot.kordRef.getChannelOf<MessageChannel>(ch)!!
|
||||||
c.createMessage {
|
c.createMessage {
|
||||||
this.embeds.add(
|
this.embeds.add(
|
||||||
|
|
|
@ -77,10 +77,6 @@ object MessageUtil {
|
||||||
ebb.color = e.color
|
ebb.color = e.color
|
||||||
ebb.title = e.title
|
ebb.title = e.title
|
||||||
ebb.description = e.description
|
ebb.description = e.description
|
||||||
ebb.footer {
|
|
||||||
icon = e.footer!!.iconUrl
|
|
||||||
text = e.footer!!.text
|
|
||||||
}
|
|
||||||
return ebb
|
return ebb
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue