13
submitted 2 months ago* (last edited 2 months ago) by Dust0741@lemmy.world to c/selfhosted@lemmy.world

I am trying to not use any Google services for notifications and so I'd like to make a script to send notifications via ntfy based on discord messages.

How would I get access programmatically to my own discord account? Do they even support it? They have bots, but is their api for DMs?


Edit: the solution may just be a bot in servers, then not responding to DMs unless they use signal

all 15 comments
sorted by: hot top controversial new old
[-] darklamer@lemmy.dbzer0.com 12 points 2 months ago

Just curious: If you're willing to use Discord, why not Google?

[-] Dust0741@lemmy.world 8 points 2 months ago

good question. friends use discord.

[-] JustAnotherKay@lemmy.world 1 points 2 months ago

Beeper + a python script could get this done

[-] tal@lemmy.today 0 points 2 months ago* (last edited 2 months ago)

I get that.

Honestly, though I'm still a little puzzled as to why people initially got into Discord; I never did.

I can understand why people wanted to use some systems. Twitter does massive-scale real-time indexing. That was a huge feature, really changed what one could do on the platform.

Reddit provided a good syntax (Markdown), had a low barrier to entry (no email verification at a time when that was common), and third-party client access. It solved the spam problem that was killing Usenet and permitted for more-reasonable moderation.

There were a whole host of services that aimed to lower the complexity bar to get a web page and some content online associated with someone's identity; it was clear that lack of technical knowledge and the technical knowledge required to get stuff up was a real limiting factor for many people.

But I just didn't really get where Discord provided much of a win over stuff like IRC. I mean, I guess maybe it bundled a couple services into one, which maybe lowered the bar to use a bit. IRC really seemed pretty fine to me. Reddit bundling image-hosting seems to have lowered the bar, been something that people wanted. Maybe Discord doing images and file-hosting made it more-accessible.

I have no idea why a number of people who liked Cataclysm: Dark Days Ahead used Discord rather than Reddit; it seemed like a dramatically-worse system if one was aiming to create material for others to look back at and refer to.

kagis

https://old.reddit.com/r/RedditForGrownups/comments/t417q1/can_someone_please_explain_discord_to_me_like_im/

It’s just modern day IRC with video.

Ahaha, thanks. This is indeed an ELI60 response, although it doesn't really explain how Discord suddenly got so popular. But if I couple this with /u/Healthy-Car-1860's response, I'm kind of getting the picture.

Got popular because it spread through the entire gamer/twitch community like wildfire due to actually being a more complete package and easier to use than anything prior. Online gamers have been struggling with voip software forever (Roger Wilco, Teamspeak, Ventrilo, Skype, and many others).

Once it was rooted in the people who are on their computers app day every day it was bound to spread because the UX is incredibly easy compared to previous options for both chat and voip.

Maybe that's it. I never had a lot of interest in VoIP, especially group VoIP. When I was playing online games much, people used keyboards to communicate, not mics. There was definitely a period where people needed the ability to collaborate in games and games didn't always provide that functionality. I remember people complaining about Teamspeak and Ventrilo. I briefly poked at Mumble -- nice to have an open-source option -- but I just had no reason to want to do VoIP with groups of people.

But I suppose for a video game clan or something, that might be important functionality. And if it's also a one-stop shop for some other things that you might want to do anyway, it maybe makes sense to just use that rather than multiple services.

[-] 418teapot@lemmy.world 8 points 2 months ago

It is likely not worth your effort as whatever you come up with will likely result in discord deactivating your account for breaking their ToS, or them breaking their API forcing you to constantly play catch-up.

This is why open communication protocols are so important. Email is still as ubiquitous as it is because it's a protocol, not an API.

I personally think it would be less overall effort to get your friends to switch to an open protocol like matrix, or XMPP than it would playing cat and mouse with proprietary APIs. But you do you, I wish you the best of luck!

[-] tal@lemmy.today 1 points 2 months ago* (last edited 2 months ago)

https://github.com/matrix-org/matrix-appservice-discord

It looks like there's software to bridge it to Matrix. I have no idea whether that violates ToS. It does look like it's getting development, though, so I can't imagine that Discord has been cutting people off en masse for using it.

[-] trollblox_@programming.dev 4 points 2 months ago

you can't access your own account. you can have a bot sit in the server and read messages, but after a certain number of joined servers you will need approval from discord to continue.

[-] TheButtonJustSpins@infosec.pub 3 points 2 months ago

Check out Discord's Webhooks; many applications publish notifications through them. Should be as easy as sending a message to a specific URL, I think.

[-] Undaunted@discuss.tchncs.de 2 points 2 months ago

Discord recently added "user installable apps". You can configure it though the installation context. I have only implemented the usual server installable apps so far, so I don't know what the apps in the new context are able to do. But it might be worth a look :)

[-] Lemongrab@lemmy.one 2 points 2 months ago

Self-boting is against ToS. You have to be careful when interacting with the Discord API. Maybe there is a way to run the discord website to fetch text messages.

[-] LodeMike@lemmy.today 2 points 2 months ago

Mautrix Discord (look it up)

[-] Dust0741@lemmy.world 2 points 2 months ago

Oh yea I forgot about matrix. Maybe setting up a bridge would work. Thanks for the reminder I'll look into this

this post was submitted on 09 Sep 2024
13 points (100.0% liked)

Selfhosted

40438 readers
211 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS