mirror of
https://github.com/42wim/matterbridge.git
synced 2024-11-24 03:32:02 -08:00
Remove markdown for giphy
This commit is contained in:
parent
008ea94b53
commit
5282cdaccd
@ -88,7 +88,7 @@ func (b *Bridge) handleMatter() {
|
|||||||
b.i.SendRaw("NAMES " + b.Config.IRC.Channel)
|
b.i.SendRaw("NAMES " + b.Config.IRC.Channel)
|
||||||
case "!gif":
|
case "!gif":
|
||||||
message.Text = b.giphyRandom(strings.Fields(strings.Replace(message.Text, "!gif ", "", 1)))
|
message.Text = b.giphyRandom(strings.Fields(strings.Replace(message.Text, "!gif ", "", 1)))
|
||||||
b.Send(b.Config.IRC.Nick, "![img]("+message.Text+")")
|
b.Send(b.Config.IRC.Nick, message.Text)
|
||||||
}
|
}
|
||||||
texts := strings.Split(message.Text, "\n")
|
texts := strings.Split(message.Text, "\n")
|
||||||
for _, text := range texts {
|
for _, text := range texts {
|
||||||
|
Loading…
Reference in New Issue
Block a user