#Enriching Your Bot Content with Multimedia
1 messages · Page 1 of 1 (latest)
Adding Images
Markdown syntax for adding images: 
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:

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.
Adding a video
<source src="video_url" type="video/mp4">
</video>```
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>```
Summary in Chinese
中文总结(精华版):
不管添加视频,图片还是音乐,通用思路是上传到一个hosting service,图床或者网盘,包括discord也算,获取文件直链,然后用markdown或者html的方式插入到bot的打招呼语里。记得检查一下文件大小,太大了加载起来会很慢,压缩一下。
操作很简单,上面演示很明确了。有问题欢迎提,有好用的工具欢迎补充。
Thank you
😃
Thank you!
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!
Oh no!? I clicked the link before
If you just went to that webpage that made links, you are fine. If you created a link, you didn't compromise anything. But visiting the link it generates is DANGEROUS. Did you follow the actual content link or just the link to the generator site?
I made links but i stop midway since it didn't work. 'The links cannot be found.' when i paste it on a browser
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.
Link they give you:
https://drive.google.com/file/d/YOUR_FILE_ID/view?usp=sharing
Change it to:
https://drive.google.com/uc?export=download&id=YOUR_FILE_ID
OMG I've been using it since last year. Will change it right away.
Change the links. You are serving people malware.
Thanks for your reminder 😃