
Discord Bots 5: Posting GIFs
In this video, I demonstrate how to post GIFs to Discord from a bot. π» Code: https://thecodingtrain.com/learning/bots/discord/05-posting-gifs.html
π₯ Next video: https://youtu.be/B60Q74FHFBQ
π₯ All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6avBYxeBSwF48YhAnSn_sA4
Links discussed in this video:
π Official Coding Train Gif Page (Tenor): https://tenor.com/official/thecodingtrain
π Tenor API Documentation: https://tenor.com/gifapi/documentation
π Tenor API sign up: https://tenor.com/developer/keyregistration
π axios (GitHub): https://github.com/axios/axios
π Choo choo bot on Glitch: https://glitch.com/~choo-choo-bot-discord
Other videos mentioned in this video:
π₯ Hiding API Keys with .env: https://youtu.be/G2Yns7NUSq4
π₯ Fetch: https://youtu.be/tc8DU14qX6I
π₯ async/await Part 1: https://youtu.be/XO77Fib9tSI
π₯ Fire Effect - Coding Challenge #103: https://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: http://thecodingtrain.com/
πΎ Share Your Creation! https://thecodingtrain.com/Guides/community-contribution-guide.html
π© Suggest Topics: https://github.com/CodingTrain/Rainbow-Topics
π‘ GitHub: https://github.com/CodingTrain
π¬ Discord: https://discord.gg/hPuGy2g
π Membership: http://youtube.com/thecodingtrain/join
π Store: https://standard.tv/codingtrain
π Books: https://www.amazon.com/shop/thecodingtrain
ποΈ Twitter: https://twitter.com/thecodingtrain
πΈ Instagram: https://www.instagram.com/the.coding.train/
π₯ Coding Challenges: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ Intro to Programming: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA
π p5.js: https://p5js.org
π p5.js Web Editor: https://editor.p5js.org/
π Processing: https://processing.org
π Code of Conduct: https://github.com/CodingTrain/Code-of-Conduct
Other Videos By The Coding Train
2021-02-06 | 3.4 Polar Coordinates - The Nature of Code |
2021-02-02 | 3.3: Angles and Vectors - Nature of Code |
2021-01-29 | 3.2 Angular Motion - Nature of Code |
2021-01-26 | 3.1 Angles and Rotation - Nature of Code |
2021-01-23 | Coding Train Live! |
2021-01-16 | 2021 Choo Choo! |
2021-01-15 | Discord Bots 6: Building a Command Handler |
2021-01-08 | 2021 Choo Choo! |
2020-12-23 | Processing Foundation Holiday Telethon 2020 |
2020-12-17 | Winter Show 2020 (ITP/IMA/IMA Low Res) |
2020-12-17 | Discord Bots 5: Posting GIFs |
2020-12-12 | Advent of Code (Side Project Saturday!) |
2020-12-09 | ml5.js: Classifying Drawings with DoodleNet |
2020-12-05 | Side Project Saturday! |
2020-12-03 | Coding Challenge #158: Shape Classifier Neural Network with ml5.js |
2020-12-02 | Discord Bots 4: Hiding API Keys with .env |
2020-11-29 | Side Project Sunday? |
2020-11-25 | ml5.js: Training a Convolutional Neural Network for Image Classification |
2020-11-14 | Side Project Saturday! |
2020-11-09 | Discord Bots 3: Coding a Bot with discord.js |
2020-11-08 | Discord Bots 2: Discord Developer Portal |