#Enriching Your Bot Content with Multimedia

1 messages · Page 1 of 1 (latest)

quasi snow
#

Incorporating multimedia elements into your bot's content can greatly enhance the user experience and make your bot more engaging and interactive. Here are some ways you can add images, videos, and background music to your bot:

A summary in Chinese at the end of post. (结尾有中文总结,国人可以直接跳到最后)

#

Adding Images

Markdown syntax for adding images: ![image description](image link)

HTML syntax for adding images: <img src="image link" alt="image description">

#

Simply click on the image and copy link, replace it here you get this:
![test](https://media.discordapp.net/attachments/1227841765050945626/1227841765223039046/thread_77363903_20200906231753_s_146792_w_424_h_292_71295.jpg?ex=6629dfc1&is=66176ac1&hm=c9fc7036b1a356b2e0712af807406b734fa93fadb1e548165cb63be8183e9ed0&=&format=webp&width=530&height=365)

#

Put it in the bot intro message and you'll see it.

If the link takes up too much token, you can use bit.ly to shorten the url, or use a different iimage hosting service like Imgur or Imgbox.

You can also add gif in this way.

Additionally, if the image or GIF is quite large, you may want to compress it first. This can help reduce the load time and make the intro message load more quickly.

#

Upload the music file to One Drive and copy the link, replace it. Put it in the intro message.

#

BGM

Code:

  <source src="music_link" type="audio/mpeg">
</audio>```
quasi snow
#

Summary in Chinese

中文总结(精华版):
不管添加视频,图片还是音乐,通用思路是上传到一个hosting service,图床或者网盘,包括discord也算,获取文件直链,然后用markdown或者html的方式插入到bot的打招呼语里。记得检查一下文件大小,太大了加载起来会很慢,压缩一下。
操作很简单,上面演示很明确了。有问题欢迎提,有好用的工具欢迎补充。happycat

native trail
#

Thank you
😃

plain fiber
#

Thank you!

dusky sentinel
#

The link that you had shared to generate direct file links for OneDrive is possibly very dangerous. I have removed the link.

Source: https://threatfox.abuse.ch/ioc/1211740/

Don't worry though! You can indeed obtain a permanent direct link to OneDrive files!
OneDrive contains a menu option to show you an embed code! (see image attached.)
Just take the URL from here & you're good to go on most file types!

I also enjoy using GitHub to host these things, personally. To link to a public file, just follow this link format:

https://raw.githubusercontent.com/USERNAME/REPO/BRANCH/PATH/FILE)

GitHub, however, may not be a suitable home for NSFW content.

Cheers!

plain fiber
dusky sentinel
plain fiber
dusky sentinel
#

You should be fine. It sticks extra junk to your files & hopes you embed them in sensitive places.

#

Just use one of the other ideas I shared. Hopefully those work for you!

#

You can get direct links to Google Drive as well. It isn't as ellegant.

quasi snow
dusky sentinel
quasi snow