Discord Bot with Rust ft Prince Wilson - Colbyashi Maru

Published: 31 March 2021
on channel: Colby Fayock
1,318
44

Learn how to use Rust to build a Discord Bot to interact with chat commands!

🧐 What's Inside
0:00:00​ - Intro Discord Bot with Rust
0:00:12 - Prince Wilson Introduction
0:01:10 - What to expect and the tools we'll use
0:02:33 - Starting a new Rust project with rustup
0:07:34 - Debugging and fixing "linking with cc" error preventing compile
0:16:44 - Compiling a rust and using Serenity and Tokio to set up a discord client
0:22:10 - Setting up an event handler to interact with the discord client
0:35:22 - Creating a new Discord bot application and generating a token
0:42:47 - Using a Discord bot token to start the server client
0:46:40 - Adding a message handler and sending a response on command
0:54:13 - Starting to set up a command framework to manage multiple commands
1:04:14 - Outro
1:05:16 - Project review
1:05:54 - CRASH!
1:07:44 - Outro Part 2

Prince Wilson
  / maxcell  
  / maxcellw  

Subscribe on Twitch to catch the next one live!
  / colbyfayock​​  

More Colbyashi Maru episodes
   • Colbyashi Maru  

🧰 More Resources

rustup
https://rustup.rs/

Rust Analyzer
https://rust-analyzer.github.io/

Tokio
https://github.com/tokio-rs/tokio

Serenity Examples
https://github.com/serenity-rs/sereni...

Rust Book
https://doc.rust-lang.org/book/

🔔 Subscribe for more tech and developer videos
https://www.youtube.com/colbyfayock?s...

🐦 Get updates straight to your Twitter @colbyfayock
  / colbyfayock  

📸 Catch the next stream live on Twitch @colbyfayock
  / colbyfayock  

✉️ Or a newsletter right to your inbox!
https://www.colbyfayock.com/newsletter/

💝 Sponsor me for more free content like this!
https://github.com/sponsors/colbyfayock

👨‍🚀 Brought to by colbyfayock.com
https://www.colbyfayock.com

🎥 Want to know what A/V equipment I use?
https://www.colbyfayock.com/what-i-use

🎼 Music
StreamBeats
https://www.streambeats.com/

#colbyfayock #colbyashimaru #discordbot #discord #rust #webdevelopment #stream