Fix bot using @here or @everyone

This commit is contained in:
Julius de Jeu 2019-06-11 14:44:13 +02:00
parent d97474d028
commit d7ae28f21a
2 changed files with 3 additions and 3 deletions

View file

@ -6,10 +6,10 @@ import net.dv8tion.jda.api.entities.TextChannel
class MusicAnnouncerImpl(override val channel: TextChannel, guild: Guild) : MusicAnnouncer(channel, guild) {
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) {
channel.sendMessage("Queue'd ${track.info.title}!").queue()
channel.sendMessage("Queue'd ${track.info.title.replace("@here", "@hеre").replace("@everyone", "@еveryone")}!").queue()
}
}

View file

@ -8,4 +8,4 @@ spring.jpa.generate-ddl=true
spring.jpa.hibernate.ddl-auto=create-drop
spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true
ottobot.version=1.2
ottobot.version=1.3