Live Coding Stream Recaps (14 Part Series)
1 Unique reactions to Twitch raids [Live Coding Recap]
2 Faking a computer glitch w/Python & OBS [Live Coding Recap]
… 10 more parts…
3 Shout-out chat bot in Python [Live Coding Recap]
4 Greeting subscribers w/the Twitch shoutout bot [Live Coding Recap]
5 Adding TTS to the Twitch Shoutout Bot [Live Coding Recap]
6 Twitch Bot 101 (Python) [Live Coding Recap]
7 Persistent Data w/JSON [Live Coding Recap]
8 Storing Bot Commands in JSON Objects [Live Coding Recap]
9 A Better Quoting System [Live Coding Recap]
10 Refactoring a Python Bot [Live Coding Recap]
11 Are you a 10x Developer? [Live Coding Recap]
12 SFX & Derp Wars (a Dope Wars clone) [Live Coding Recap]
13 A Text-Based Battle Royale?? [Live Coding Recap]
14 Learning C# w/ @AlSweigart [Live Coding Recap]
Streamed: 11/01 on Twitch
Watch ⇒ Twitch VOD (replay)
Tonight we hung out and celebrated news of the Microsoft MVP award then got to work on DeepThonk (the Python bot’s) code!
You heard me.
The big news dropped earlier that day and I’ve been on a roller-coaster of emotions ever since. Once the award kit comes in, I’ll be doing a live unboxing and big fat THANK YOU stream on Twitch or Twitter. 😀
Language(s) Used: Python
Tech & lib(s) used: VSCode, TwitchIO
Project Repository ⭐ DeepThonk
Code & notes from stream down below! 😀
During the stream we…
caught up with everybody in chat
announced MVP award stuffs!! YAYYY!!
loaded up some new sfx (thanks, Jigo!)
chat had a blast going HAM with sfx & gifs
made an !xlev
command that determined your dev-level :Kappa:
whipped up a shoutout func (!so
) for sharing streamer info
fixed issue with founders badges not counting as a subscriber (permissions)
stretch and snack break
tried to play fortnite – mistakes wer maed
started work on random sfx triggered by words in chat (almost done!)
ended the stream with a raid on JMSWRNR, a very talented artist and developer – check them out!
Here’s some code we wrote for the bot…
We made a highly sophisticated chat command that reveals your Dev x-level.
# in cmds.py @bot.command(name="xlev")
async def xlev(ctx):
level = random.randint(0, 70)
msg = f"@{ctx.author.name}, you're totes a {level}x dev! Congrats! "
await ctx.send(msg)
Enter fullscreen mode Exit fullscreen mode
Here’s a sample of it in action!
Sweet. ;D
We also whipped up a shoutout function (!so
) that helps spread the word about awesome streamers that pop in to our chat room.
# in cmds.py @bot.command(name='so')
async def so(ctx):
'shouts out a streamer'
token = ctx.content.split(' ', 1)
if token[1][0] == '@':
streamer = token[1][1:]
else:
streamer = token[1]
msg = f"Check out @{streamer}, a super rad streamer and friend of the channel! https://twitch.tv/{streamer}"
await ctx.send(msg)
Enter fullscreen mode Exit fullscreen mode
Here we have a shoutout of fellow Live Coder and DEV contributor, @talk2megooseman
We also fixed an issue with the founder’s badges not counting as subscriber badges. Basically, Twitch recently implemented a new feature that lets the first 5-10 subscribers to a channel proudly display their undying support. So, when Founders weren’t allowed to use sub-only commands, that made Jigo cri.
# in permissions-check function if 'founder' in ctx.author.badges.keys():
ctx.author.subscriber = 1
Enter fullscreen mode Exit fullscreen mode
We started working on the random SFX function as well, but since we didn’t figure that during this stream, I’ll document that in the recap for the stream where it all comes together and works well. 😀
Live Coding Schedule
For the most up to date schedule, check my pinned post on Twitter.
I stream Python coding & lame jokes™ on Twitch every Tuesday, Thursday, & Saturday around 7pm PST.
Follow on Twitch
Live Coding Stream Recaps (14 Part Series)
1 Unique reactions to Twitch raids [Live Coding Recap]
2 Faking a computer glitch w/Python & OBS [Live Coding Recap]
… 10 more parts…
3 Shout-out chat bot in Python [Live Coding Recap]
4 Greeting subscribers w/the Twitch shoutout bot [Live Coding Recap]
5 Adding TTS to the Twitch Shoutout Bot [Live Coding Recap]
6 Twitch Bot 101 (Python) [Live Coding Recap]
7 Persistent Data w/JSON [Live Coding Recap]
8 Storing Bot Commands in JSON Objects [Live Coding Recap]
9 A Better Quoting System [Live Coding Recap]
10 Refactoring a Python Bot [Live Coding Recap]
11 Are you a 10x Developer? [Live Coding Recap]
12 SFX & Derp Wars (a Dope Wars clone) [Live Coding Recap]
13 A Text-Based Battle Royale?? [Live Coding Recap]
14 Learning C# w/ @AlSweigart [Live Coding Recap]
暂无评论内容