Merge branch 'bug/everyonemention' into 'master'

Fix bot using @here or @everyone

Closes #1

See merge request jdejeu/ottobotv2!1
This commit is contained in:
Julius de Jeu 2019-06-11 12:47:33 +00:00
commit 08723f71eb
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) { 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()
} }
} }

View file

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