Add ktlint to deployment process
This commit is contained in:
parent
cd9ee0e881
commit
5c7efcd10e
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/sh
|
||||||
|
ktlint --disabled_rules import-ordering,no-wildcard-imports
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
if gradle test; then
|
if ./check.sh && gradle test; then
|
||||||
gradle shadowjar
|
gradle shadowjar
|
||||||
scp build/libs/moe.kageru.kagebot-0.1-all.jar lain:/home/selphybot/bot.jar
|
scp build/libs/moe.kageru.kagebot-0.1-all.jar lain:/home/selphybot/bot.jar
|
||||||
ssh lain sudo systemctl restart selphybot.service
|
ssh lain sudo systemctl restart selphybot.service
|
||||||
|
|
|
@ -22,7 +22,7 @@ class Permissions(
|
||||||
message.messageAuthor.isBotOwner -> true
|
message.messageAuthor.isBotOwner -> true
|
||||||
onlyDM && !message.isPrivateMessage -> false
|
onlyDM && !message.isPrivateMessage -> false
|
||||||
// returns true if the Option is empty (case for no restrictions)
|
// returns true if the Option is empty (case for no restrictions)
|
||||||
else -> hasOneOf.forall { Util.hasOneOf(message.messageAuthor, it) }
|
else -> hasOneOf.forall { Util.hasOneOf(message.messageAuthor, it) } &&
|
||||||
&& hasNoneOf.forall { !Util.hasOneOf(message.messageAuthor, it) }
|
hasNoneOf.forall { !Util.hasOneOf(message.messageAuthor, it) }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user