catdad ๐Ÿ’– is a user on octodon.social. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.
catdad ๐Ÿ’– @tcql

lol i should have made this more clear instead of a vague shoutpost

i'm sharing the code that's running @ImDad and @InspiroBot to help people learn that about bots, and also to help improve them ๐Ÿ˜„ (because they need it)

github.com/tcql/mastobots

ยท Web ยท 18 ยท 21

@tcql hi sharing the code that's running @ImDad and @InspiroBot to help people learn that about bots, and also to help improve them ๐Ÿ˜„ (because they need it)github.com/tcql/mastobots, i'm dad!

@ImDad Thanks! When I feel lonely tonight I can ply my hand at mastoboting!

hey and please do file tickets, pull requests or send me feedback here ๐Ÿ’–

feedback Show more

@tcql @ImDad @InspiroBot

I hope you don't mind, but I have a few code improvements you could make!

1:

Never use != or == None. None is not a value you should compare to, it's an equality comparison.

So instead of, for instance, " if (media['id'] != None):", it should be " if (media['id'] is not None):"

@tcql Sorry, I sent a lot of toots to several of your bots. I think they're all relevant though.

Still trying to figure out mastodon.

@ankhmorpork awesome, thanks for the feedback. I checked the mentions on the bot accounts, so I've got the whole message.

I'm pretty new at python, so happy for the language specific tips

@tcql It's absolutely fine code for someone who's new to it! I figured you had some experience in it, but I'm glad to point out the one true path while you're still new to it.