diff --git a/.idea/misc.xml b/.idea/misc.xml
index a4abeb1..0b1ec52 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -5,7 +5,7 @@
-
+
-
\ No newline at end of file
+
diff --git a/.idea/modules.xml b/.idea/modules.xml
deleted file mode 100644
index 4787ae5..0000000
--- a/.idea/modules.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml
index 13e95fa..51def88 100644
--- a/gradle/libs.versions.toml
+++ b/gradle/libs.versions.toml
@@ -23,4 +23,4 @@ logback-groovy = { module = "io.github.virtualdogbert:logback-groovy-config", ve
logging = { module = "io.github.oshai:kotlin-logging", version.ref = "logging" }
twitch4j = { module = "com.github.twitch4j:twitch4j", version.ref = "twitch4j" }
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" }
diff --git a/src/main/kotlin/dev/jansel/feixiao/extensions/StreamerCommand.kt b/src/main/kotlin/dev/jansel/feixiao/extensions/StreamerCommand.kt
index 0e1818c..495d306 100644
--- a/src/main/kotlin/dev/jansel/feixiao/extensions/StreamerCommand.kt
+++ b/src/main/kotlin/dev/jansel/feixiao/extensions/StreamerCommand.kt
@@ -38,6 +38,12 @@ class StreamerCommand : Extension() {
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(
guild!!.id,
arguments.channel.id,
@@ -87,6 +93,12 @@ class StreamerCommand : Extension() {
val channelId = arguments.channel
val message = arguments.message
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 (channelId != null) {
StreamerCollection().updateData(streamer, channelId.id, guildId)