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