Uploaded December 2020 | Updated November 2026, 14 hours ago
In this video, I demonstrate how to post GIFs to Discord from a bot. π» Code: thecodingtrain.com/learning/bots/discord/05-posting-gifs.html
π₯ Next video: youtu.be/B60Q74FHFBQ
π₯ All videos: youtube.com/playlist?list=PLRqwX-V7Uu6avBYxeBSwF48YhAnSn_sA4
Links discussed in this video:
π Official Coding Train Gif Page (Tenor): tenor.com/official/thecodingtrain
π Tenor API Documentation: tenor.com/gifapi/documentation
π Tenor API sign up: tenor.com/developer/keyregistration
π axios (GitHub): github.com/axios/axios
π Choo choo bot on Glitch: glitch.com/~choo-choo-bot-discord
Other videos mentioned in this video:
π₯ Hiding API Keys with .env: youtu.be/G2Yns7NUSq4
π₯ Fetch: youtu.be/tc8DU14qX6I
π₯ async/await Part 1: youtu.be/XO77Fib9tSI
π₯ Fire Effect - Coding Challenge #103: youtu.be/X0kjv0MozuY
Timestamps:
0:00 Introduction!
0:37 Explain! Tenor API
1:13 Code! Add !gif command
2:33 Try! Multiple commands
2:49 Explain! Tenor Documentation
3:38 Code! fetch() some Coding Train GIFs
6:01 Try! console.log data from tenor
6:46 Code! Having bot send gif url
7:28 Try! Do we get a gif in discord?
7:42 Code! Let's make it random
8:57 Try! Hopefully that was all the mistakes
9:14 Code! Add a search term
11:55 Code! Add content filtering
12:56 Try! Let's find out if it works
13:42 Code! Add some alt text for the gif
14:00 Try! Make sure that worked
14:15 Wrap up! Choo Choo
π Website: thecodingtrain.com
πΎ Share Your Creation! thecodingtrain.com/Guides/community-contribution-guide.html
π© Suggest Topics: github.com/CodingTrain/Rainbow-Topics
π‘ GitHub: github.com/CodingTrain
π¬ Discord: discord.gg/hPuGy2g
π Membership: youtube.com/thecodingtrain/join
π Store: standard.tv/codingtrain
π Books: amazon.com/shop/thecodingtrain
ποΈ Twitter: twitter.com/thecodingtrain
πΈ Instagram: instagram.com/the.coding.train
π₯ Coding Challenges: youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ Intro to Programming: youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA
π p5.js: p5js.org
π p5.js Web Editor: editor.p5js.org
π Processing: processing.org
π Code of Conduct: github.com/CodingTrain/Code-of-Conduct
In this video, I demonstrate how to post GIFs to Discord from a bot. π» Code: thecodingtrain.com/learning/bots/discord/05-posting-gifs.html
π₯ Next video: youtu.be/B60Q74FHFBQ
π₯ All videos: youtube.com/playlist?list=PLRqwX-V7Uu6avBYxeBSwF48YhAnSn_sA4
Links discussed in this video:
π Official Coding Train Gif Page (Tenor): tenor.com/official/thecodingtrain
π Tenor API Documentation: tenor.com/gifapi/documentation
π Tenor API sign up: tenor.com/developer/keyregistration
π axios (GitHub): github.com/axios/axios
π Choo choo bot on Glitch: glitch.com/~choo-choo-bot-discord
Other videos mentioned in this video:
π₯ Hiding API Keys with .env: youtu.be/G2Yns7NUSq4
π₯ Fetch: youtu.be/tc8DU14qX6I
π₯ async/await Part 1: youtu.be/XO77Fib9tSI
π₯ Fire Effect - Coding Challenge #103: youtu.be/X0kjv0MozuY
Timestamps:
0:00 Introduction!
0:37 Explain! Tenor API
1:13 Code! Add !gif command
2:33 Try! Multiple commands
2:49 Explain! Tenor Documentation
3:38 Code! fetch() some Coding Train GIFs
6:01 Try! console.log data from tenor
6:46 Code! Having bot send gif url
7:28 Try! Do we get a gif in discord?
7:42 Code! Let's make it random
8:57 Try! Hopefully that was all the mistakes
9:14 Code! Add a search term
11:55 Code! Add content filtering
12:56 Try! Let's find out if it works
13:42 Code! Add some alt text for the gif
14:00 Try! Make sure that worked
14:15 Wrap up! Choo Choo
π Website: thecodingtrain.com
πΎ Share Your Creation! thecodingtrain.com/Guides/community-contribution-guide.html
π© Suggest Topics: github.com/CodingTrain/Rainbow-Topics
π‘ GitHub: github.com/CodingTrain
π¬ Discord: discord.gg/hPuGy2g
π Membership: youtube.com/thecodingtrain/join
π Store: standard.tv/codingtrain
π Books: amazon.com/shop/thecodingtrain
ποΈ Twitter: twitter.com/thecodingtrain
πΈ Instagram: instagram.com/the.coding.train
π₯ Coding Challenges: youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ Intro to Programming: youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA
π p5.js: p5js.org
π p5.js Web Editor: editor.p5js.org
π Processing: processing.org
π Code of Conduct: github.com/CodingTrain/Code-of-Conduct










