Fix bot using @here or @everyone
This commit is contained in:
parent
d97474d028
commit
d7ae28f21a
|
@ -6,10 +6,10 @@ import net.dv8tion.jda.api.entities.TextChannel
|
||||||
|
|
||||||
class MusicAnnouncerImpl(override val channel: TextChannel, guild: Guild) : MusicAnnouncer(channel, guild) {
|
class MusicAnnouncerImpl(override val channel: TextChannel, guild: Guild) : MusicAnnouncer(channel, guild) {
|
||||||
override fun sendPlayTrack(track: AudioTrack) {
|
override fun sendPlayTrack(track: AudioTrack) {
|
||||||
channel.sendMessage("Now playing ${track.info.title}").queue()
|
channel.sendMessage("Now playing ${track.info.title.replace("@here", "@hеre").replace("@everyone", "@еveryone")}").queue()
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun sendQueueTrack(track: AudioTrack) {
|
override fun sendQueueTrack(track: AudioTrack) {
|
||||||
channel.sendMessage("Queue'd ${track.info.title}!").queue()
|
channel.sendMessage("Queue'd ${track.info.title.replace("@here", "@hеre").replace("@everyone", "@еveryone")}!").queue()
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -8,4 +8,4 @@ spring.jpa.generate-ddl=true
|
||||||
spring.jpa.hibernate.ddl-auto=create-drop
|
spring.jpa.hibernate.ddl-auto=create-drop
|
||||||
spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true
|
spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true
|
||||||
|
|
||||||
ottobot.version=1.2
|
ottobot.version=1.3
|
Loading…
Reference in a new issue