maybe this is more clear regarding everyone pings (I have no clue if the described workaround works, too lazy)
This commit is contained in:
parent
891c544ad8
commit
d4f750ba68
2
.idea/misc.xml
generated
2
.idea/misc.xml
generated
@ -5,7 +5,7 @@
|
|||||||
<file type="web" url="file://$PROJECT_DIR$/../ext-common" />
|
<file type="web" url="file://$PROJECT_DIR$/../ext-common" />
|
||||||
<file type="web" url="file://$PROJECT_DIR$" />
|
<file type="web" url="file://$PROJECT_DIR$" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_21" default="true" project-jdk-name="azul-21" project-jdk-type="JavaSDK">
|
<component name="ProjectRootManager" version="2" languageLevel="JDK_21" default="true" project-jdk-name="temurin-21" project-jdk-type="JavaSDK">
|
||||||
<output url="file://$PROJECT_DIR$/out" />
|
<output url="file://$PROJECT_DIR$/out" />
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
8
.idea/modules.xml
generated
8
.idea/modules.xml
generated
@ -1,8 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
|
||||||
<component name="ProjectModuleManager">
|
|
||||||
<modules>
|
|
||||||
<module fileurl="file://$PROJECT_DIR$/.idea/modules/feixiao.iml" filepath="$PROJECT_DIR$/.idea/modules/feixiao.iml" />
|
|
||||||
</modules>
|
|
||||||
</component>
|
|
||||||
</project>
|
|
@ -23,4 +23,4 @@ logback-groovy = { module = "io.github.virtualdogbert:logback-groovy-config", ve
|
|||||||
logging = { module = "io.github.oshai:kotlin-logging", version.ref = "logging" }
|
logging = { module = "io.github.oshai:kotlin-logging", version.ref = "logging" }
|
||||||
twitch4j = { module = "com.github.twitch4j:twitch4j", version.ref = "twitch4j" }
|
twitch4j = { module = "com.github.twitch4j:twitch4j", version.ref = "twitch4j" }
|
||||||
events4j = { module = "com.github.philippheuer.events4j:events4j-handler-reactor", version.ref = "events4j" }
|
events4j = { module = "com.github.philippheuer.events4j:events4j-handler-reactor", version.ref = "events4j" }
|
||||||
kmongo = { module="org.litote.kmongo:kmongo-coroutine-serialization", version.ref = "kmongo"}
|
kmongo = { module="org.litote.kmongo:kmongo-coroutine-serialization", version.ref = "kmongo" }
|
||||||
|
@ -38,6 +38,12 @@ class StreamerCommand : Extension() {
|
|||||||
return@action
|
return@action
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (arguments.role?.id == guild!!.id) {
|
||||||
|
respond {
|
||||||
|
content = "This action would implement a everyone ping. to properly use it please make a ping without role and insert the everyone ping manually."
|
||||||
|
}
|
||||||
|
return@action
|
||||||
|
}
|
||||||
StreamerCollection().addData(
|
StreamerCollection().addData(
|
||||||
guild!!.id,
|
guild!!.id,
|
||||||
arguments.channel.id,
|
arguments.channel.id,
|
||||||
@ -87,6 +93,12 @@ class StreamerCommand : Extension() {
|
|||||||
val channelId = arguments.channel
|
val channelId = arguments.channel
|
||||||
val message = arguments.message
|
val message = arguments.message
|
||||||
val temp = servers.find { it.guildId == guildId }
|
val temp = servers.find { it.guildId == guildId }
|
||||||
|
if (roleId?.id== guildId) {
|
||||||
|
respond {
|
||||||
|
content = "This action would implement a everyone ping. to properly use it please make a ping without role and insert the everyone ping manually."
|
||||||
|
}
|
||||||
|
return@action
|
||||||
|
}
|
||||||
if (temp != null) {
|
if (temp != null) {
|
||||||
if (channelId != null) {
|
if (channelId != null) {
|
||||||
StreamerCollection().updateData(streamer, channelId.id, guildId)
|
StreamerCollection().updateData(streamer, channelId.id, guildId)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user