Skip to content

Commit

Permalink
Merge pull request #13 from ureishi/dev-read-stickers
Browse files Browse the repository at this point in the history
Sticker(スタンプ)名を読み上げ文に追加
  • Loading branch information
kosugikun authored Oct 11, 2023
2 parents b425409 + 4cfb686 commit 68b8210
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ class MessageListener(private val bot: Bot) : ListenerAdapter() {

// URLを置き換え
msg = msg.replace("(http://|https://)[\\w.\\-/:#?=&;%~+]+".toRegex(), "ゆーあーるえる")
message.getStickers().forEach { sticker -> msg += " " + sticker.getName() }
if (textChannel === settingText) {
val settings = bot.settingsManager.getSettings(guild)
if (settings.isReadName()) {
Expand Down

0 comments on commit 68b8210

Please sign in to comment.