1
0

maybe this is more clear regarding everyone pings (I have no clue if the described workaround works, too lazy)

This commit is contained in:
Jannik Reimers 2024-12-06 13:46:42 +01:00
parent 891c544ad8
commit d4f750ba68
Signed by: jansel
GPG Key ID: 39C62D7D5233CFD0
4 changed files with 15 additions and 11 deletions

2
.idea/misc.xml generated
View File

@ -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
View File

@ -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>

View File

@ -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)