Programming for Discord

So my girlfriend does chat RP on IRC, and her online community is considering the move to discord as IRC is dying rapidly.

The biggest obstacle is the text limit, 2000 chars isn't enough for some of these huge posts. On IRC she got around it with a script I wrote that breaks large buffers into sendable chunks.

Since Discord isn't scriptable, my first thought was to use a stand-alone external app that would automatically break up and send large buffers of text into 2000 char chunks. I've written similar things for various chat systems over the years, using Windows API.

However, it appears Discord is just one big Chrome window, all of the elements are web elements, not Windows elements. So I can't obtain a handle to the "Send" text box to programmatically achieve my goal.

Anyone have any ideas? I don't want to just send key strokes, that can error very easily and is unreliable.

Attached: 1200x630wa.png (1200x630, 84K)

Other urls found in this thread:

spyware.neocities.org/articles/discord.html
halogen.city
twitter.com/SFWRedditGifs

Is your gf autistic?

Nigger just use fucking notepad and segment the RP tism into 2000 character chunks

Trying to accomplish this automagically

No idea, maybe use some alternative client like 6cord or Ripcord (closed source).

>Moving to Discord
No

Afaik it's not too straightforward to script the client to do this, the folks at BetterDiscord might be able to help, if they're still alive.

The better long term solution would be to use a selfbot as a client, but this is against their EULA/TOS whatever.

The best solution is not to consider this trash centralized data collecting furry moderated service that has outages every damn day.

This looks promising, ripcord looks like it uses windows elements. Does anyone know if it's still being maintained?

there are literally plugins that already exist for this. Try searching BandagedDiscord. Also tell your autistic girlfriend I said hi

bro just like use telegram

Discord records all your conversations and they are accessible to their employees. Fuck that. Fuck Discord.

spyware.neocities.org/articles/discord.html

>The better long term solution would be to use a selfbot as a client
This is the best solution. There's even a C# wrapper for discord.js I can use to create a basic GUI for text formatting.
Thanks user, case closed.

>IRC is dying rapidly.
Is it? Only using it for downloading, but everything feels like always.

t. pedophiles

IRC is dying is the same way RSS is dying.
In that it isn't. It's just not the hot new meme that people will use and drop in the next 5 years.

When the fuck was IRC ever "the hot new meme"?
When I got into watching fansubs in 2003, IRC was already what only the oldfags used.

Riot.im / matrix is the best alternative.

>oldfags only
several communities that started years ago on irc (plenty moved around until settled with freenode) have more active communities than on their other "official" forms like boards, mailinglists, fucking slack/discord, facebook groups (yeah) and plenty other...
slack seems to be beating it in *some* projects due to way too many newbies crying about irc being old/unusable/etc.. but if a small group will refuse to move and remain on irc even if 90% of the community moves... what are you gonna do, sue them?

also when the most knowledgable members of project X are on Y, and refuse to use other forms of social interactions, be it irc, discord, whatever

>irc being old/unusable/etc..
To be fair: When using kohlchan or eightchan, it really hurts that there is no 4chanX.
That was truly a quantum leap for this site. moot/hiroyuki cannot thank the devs enough.

That's probably what IRC feels like to them, since they are used to all that configures-itself shit, where you don't need to understand anything about the underlying protocols and standards.

Perfect anecdote since you don't need 4chanx at all to browse this website, in fact it only bloats it further and the retards who use it are kept away from the good imageboards since they can't stand them without their braindead features.

Not really. Most users of Ripcord were getting banned for using third-party clients and the dev train has slowed since they haven't perfected spoofing the official client yet

>using the default jewgle captcha
lol

Try Matrix. It supports Markdown for rich text formatting, end-to-end encryption to protect your privacy, embeddable content in rooms, plenty of useful bots, file uploads (10 MB default, some servers go bigger) and you can pick any type of client you want built in Electron, Qt, or even ncurses if that's your thing. And it's all FOSS so you can change it however you need. You don't even need to be picky chosing a server, it's a federated protocol and you can reach any room from any homeserver. You can check out halogen.city if you want a server where you can set up your own rooms and communities.

Telegram brah

Can you drop some way to contact you, by the way? I can help you get started with Matrix and figure out how the protocol can best meet your needs.

Discord is scriptable, but not directly.
You would need a bot to send chunks of 2000 chars. Feed it into the system and then the bot spits out input.

The simplest solution would be to just use a macro using something like ahk to automatically post. Second easiest would be to have users post through a bot on a website or something. I would go for the second option since it's less friction for users.

I don't think an RP IRC server migration would survive if it requires a separate new discord client someone hacked together. And we don't know if the server is built to service that amount of text per post. Could be more issues.

Tell them on their feedback site. They've ignored the feature request for over a year and a half now.

tl;dr
use whatever you want or is required from you and modify it so you dont wanna kill yourself after using it

for every niche platform from msm, aim, icq through gtalk up until now for slack/mattermost/discord/riot there is always someone who says "i need to connect to this via irc" and makes yet another plugin for bitlbee or script for irssi or weechat...

my bookmarks are just a nice startpage like .html of stuff i visit regulary
my communication goes all through weechat+bitlbee - messenger, work slack, community irc, that one fag that is still on icq (except discord because devs basically killed any remote clients)
all my infrastructure scripts (unix sysadmin) and dev (latex; py; c) is done via vim and on git
all the "news" stuff is either filtered on ##news@freenode or rss in newsbeuter
all the work & hobby notes are basically just md/rst files nicely organised in gitit
all the mails get synced (imap) to mutt

all this on the lowest tier hetzner vps
rear backup once a day of whole vps and rsyncs it to backup box in different dc; if backups are corrupted, local data is "backed up" to work/private gitlab, everything else can be redownloaded again; if everything has gone to shit; there is a ansible playbook to redo most of this in few minutes...

is this an autistic setup? yes, but it's good for me.. throw a fresh pc at me and all i need to install is putty and keepass, and i'm happy
can a normal person achieve similar by selling their soul to the cloud(google, ms, ..)? sure, it will probably look better as well
am i gonna shittalk people that think/work/prefer stuff differently than i do? no reason, otherwise i'd still live alone or with parrents.. Jow Forums have some weird need to cry at anything that thinks other than themselves..

>10 MB default
Just in the default homeserver.yaml. The matrix.org homeserver actually allows up to 100 MiB.
Also, relevant: it allows posting much longer messages than Discord.

Matrix is nice in that nowadays there's plenty of bridges to other chat services, including a pretty large selection of IRC servers. I think previously IRC was the protocol to cling to for access to bridged content, but nowadays Matrix/Riot is doing that way better.

Use the web client and write an userscript

why are you asking a question when you already know the answer

I RP on Discord (lol) and this is what I do. It's not hard.