#dev 2021-10-28

2021-10-28 UTC
#
GWG
Could I trouble people for more responses as https://github.com/indieweb/indieauth/pull/102 will change a bunch of other things
#
Loqi
[dshanske] #102 Introduce Server Metadata and Iss Parameter
maxwelljoslyn[d], hendursaga and gRegor joined the channel
#
capjamesg[d]
I made a few grammar suggestions GWG.
#
capjamesg[d]
It's not much but I was not confident commenting on other aspects.
gRegor, jamietanna, jjuran, kogepan, hendursa1, neocow and schmudde joined the channel
#
capjamesg[d]
Has anyone tried to make a Discord bot before?
tetov-irc joined the channel
#
@nhoizey
Keeping track of what happens in my mentions is easy with @mxbck's amazing project Webmention Analytics, built with http://webmention.io and @eleven_ty. And it's public: <https://nho-webmention.netlify.app/> https://nho.link/n/2021/10/28/2/
(twitter.com/_/status/1453690269702963201)
hs0ucy and [Sam_Butler] joined the channel
#
Loqi
[mgdm] htmlq: Like jq, but for HTML.
hs0ucy_ and jaylamo joined the channel
#
[schmarty]
I am a fan of https://github.com/ericchiang/pup though I find the syntax slightly harder to use than jq.
#
Loqi
[ericchiang] pup: Parsing HTML at the command line
hendursa1 joined the channel
#
hs0ucy_
There's also https://github.com/mgdm/htmlq in rust
#
Loqi
[mgdm] htmlq: Like jq, but for HTML.
gRegor, superkuh and nertzy joined the channel
#
[jacky]
KevinMarks: I don't know if you saw this reply from Tim Bray: https://github.com/blueskyCommunity/aozora/pull/22#issuecomment-953201305
schmudde, jaylamo, KartikPrabhu, jjuran, gRegorLove_, [jeremycherfas], shoesNsocks and hendursaga joined the channel
#
jamietanna
Sorry https://github.com/indieweb/indieauth/pull/102#discussion_r738605868 was unclear GWG - I think let's use an example that's similar to yours?
BinarySavior and BrittSSLLC001 joined the channel
#
BrittSSLLC001
If anyone is interested in seeing a aptcha that creates div's to make letters https://HelpfulLifeSteps.com/respository/stylecaptchamodule.zip
BrittSSLLC001 and [aciccarello] joined the channel
#
[snarfed]
[jacky] [KevinMarks] I replied, feel free to weigh in too if you want, https://github.com/blueskyCommunity/aozora/pull/22#issuecomment-954094490
#
edgeduchess[d]
re: Discord Bot, I have some knowledge of it
#
capjamesg[d]
edgeduchess I have been building one.
#
capjamesg[d]
Not the easiest documentation to understand.
#
capjamesg[d]
I ended up using the discord.py wrapper even though the original creator stepped down from the project.
#
edgeduchess[d]
Have you looked at the frameworks for it?
#
capjamesg[d]
Yeah. Discord.py abstracted most of it.
#
capjamesg[d]
The webhooks were easy to get a hang of though.
#
edgeduchess[d]
I've been trying to get a friend to move from the Python implementation to the discord one
#
edgeduchess[d]
sorry
#
edgeduchess[d]
JS one
#
edgeduchess[d]
I haven't played around with the .py one, but the .js one seems to have really good documentation
#
capjamesg[d]
I would not be averse to doing that.
#
capjamesg[d]
The bot has basic conversation ability and connects to my site.
#
capjamesg[d]
So I can say “yo URL” and send a Yo webmention to a post.
#
edgeduchess[d]
I think moving things to the JS ecosystem makes a lot of sense for people that are really into webstandards tbh 😛
#
edgeduchess[d]
makes it easier to keep toolings into a scope where they can be useful to more than just a bot
#
edgeduchess[d]
you should also look into "/ commands"
#
edgeduchess[d]
i'm not deep into the bots ecosystem, but I'm planning a discord bot to integrate with my indie social and am plotting with a friend that runs a bot
#
edgeduchess[d]
apparently there's a switch from message intents to /commands
#
edgeduchess[d]
so if you do a "yo url" read from the messages it might stop working in some months
#
Loqi
totally
#
capjamesg[d]
Hello Loqi!
#
capjamesg[d]
At the moment, I am just using simple text matching.
#
capjamesg[d]
Example: “post hello from discord” will post “hello from discord” to my site.
#
capjamesg[d]
Now I am using the Python wrapper I could look into slash commands.
#
edgeduchess[d]
yeah I would do that
#
edgeduchess[d]
It's the future-proof way
#
edgeduchess[d]
and tbh it's pretty cool
#
capjamesg[d]
Or maybe I should do it in JS haha.
#
edgeduchess[d]
you will never hear "don't use JS, use Python" from me
#
edgeduchess[d]
if you're just starting, I highly suggest JS
#
capjamesg[d]
What is you need to find all the files in a folder? 😂
#
edgeduchess[d]
it's just a better ecosystem for the type of things you seem to want
#
edgeduchess[d]
and discord.js is really good
#
capjamesg[d]
I’ll check it out! Thanks!
#
edgeduchess[d]
it has so many more stars than the python version too
#
stevestreza
the discord js project is super thorough, I've used it for a few projects
#
edgeduchess[d]
plus JS is so good now
#
capjamesg[d]
edgeduchess++ for being so helpful!
#
Loqi
edgeduchess has 1 karma over the last year
#
edgeduchess[d]
omg, my first karma
#
edgeduchess[d]
*bows*
#
edgeduchess[d]
can I use gifs here?
#
Loqi
😃
#
edgeduchess[d]
do they appear in places that are not discord?
#
capjamesg[d]
I think so 🙂
#
capjamesg[d]
I think they are bridged as URLs to everyone else.
#
edgeduchess[d]
then
#
capjamesg[d]
*bows in return*
#
capjamesg[d]
stevestreza what have you been building in Discord?
#
capjamesg[d]
I will open source my simple bot code tomorrow.
#
capjamesg[d]
It’s really just a utility bot.
#
capjamesg[d]
Oh, and getting discord.py to work concurrently on a production web server is annoying.
#
capjamesg[d]
I had to split the webhook into its own project.
#
capjamesg[d]
Multi threading was fine on local but gunicorn didn’t like it.
#
stevestreza
my personal favorite project, my partner is a streamer and she often has friends chatting with her on stream via voice chat for discord, so I made a bot that will listen to voice events and pubsub those to a web view that she has in OBS that will highlight whichever person is talking with a little animation
#
stevestreza
I also help with some local conventions and there's some discord bots for role management hooked up to their registration database, some automated scheduled posting of events connected to a CMS, etc
#
capjamesg[d]
That is amazing!
#
capjamesg[d]
I had never thought about using WebSub with my bot. I wonder what I could do haha.
#
capjamesg[d]
A “James is online” indicator on my website? 😂
#
edgeduchess[d]
that is a really cool idea
#
edgeduchess[d]
I'm thinking about a status updater
#
edgeduchess[d]
kinda like the old facebook when it was in 3rd person
#
edgeduchess[d]
"James is thinking about [x]"
#
capjamesg[d]
Yes, exactly!
#
capjamesg[d]
It could be updated easily from Discord.
#
edgeduchess[d]
yeah!
#
stevestreza
Would be pretty cool to have "Playing Final Fantasy XIV" or whatever hooked up to my website
#
edgeduchess[d]
I approve of this
#
capjamesg[d]
What were you building with discord.JS edgeduchess?
#
edgeduchess[d]
I'm not personally building anything with discord, but I'm building this very niche indie social network and I'm plotting various discord integrations with a friend
#
edgeduchess[d]
so we're looking into switching their bot to discord so I can piggyback a bunch of custom functionality on it for people that have a "realm" on this social
#
edgeduchess[d]
(which is basically the equivalent of a discord server)
#
capjamesg[d]
That sounds cool!
#
capjamesg[d]
[snarfed] IRC was not very intuitive so I stopped reading into it.
#
capjamesg[d]
SASL is just a set of commands being exchanged from what I could tell but it was over my head.
#
edgeduchess[d]
It is! We're having a lot of fun with it. I'm excited for the next stage of bringing more people in.
gRegor, barryf[d], j12t and [Ed_Beck] joined the channel
#
[jacky]
stevestreza: I've been wanting something like that re: game play for a while! Steam does emit the info (would have to poll) on the Web: https://steamcommunity.com/id/jackyalcine?xml=1
#
[jacky]
gonna start mini metro to see what it looks like for that
#
[jacky]
but here's some active gameplay (from a forum link) https://steamcommunity.com/id/Fenidaz?xml=1
#
[jacky]
it's dope b/c it even links back to the store page (and I think you can query that info over their API as well to make it more 'rich')
#
stevestreza
That would work for Steam games but not for standalone games, games from GOG/Epic/Itch/etc. Pulling from Discord would get all of those, if you had Discord set to read it
#
stevestreza
There's also some games that have "rich presence" integration with Discord so you can actually get info about what you're doing in the game (e.g. in a lobby, in a battle, what server you're on, character info, etc)
#
[jacky]
Oh I see, yeahh
#
[jacky]
Oh see that's so unfair lol
#
[jacky]
I want that
#
[jacky]
I wonder if it's like local on the machine, if I were to mitm it somehow, could I also capture it and then send it along to Discord (but keep a copy)
jaylamo, [tw2113_Slack_], grantcodes[d], marksuth[d], barryf[d], edburns[d], Murray[d], maxwelljoslyn[d], tetov-irc, gRegor, hs0ucy and Seirdy joined the channel