Ho dato un’occhiata all’API di Discourse e mi chiedevo se fosse possibile ottenere informazioni aggiuntive sui account esterni (da altri social network) tramite essa.
Nel mio caso, si tratterebbe di Discord: vorrei sincronizzare gli utenti che creano un account sul forum con un ruolo sul mio server. Quando un utente digita un comando, il bot di Discord dovrebbe verificare se l’account Discourse ha collegato il proprio account Discord utilizzando il suo ID. (Forse non è stato molto chiaro, scusa '^^)
I’ll give it a try and keep you all up-to-date here. —
EDIT : I had tried this already. It spams the Discord API and almost got my original bot banned last time — Can’t use this. I’d rather make use of the Discourse API myself, and get IDs easily. Plus, it’s not working the way I want it to work.
What I’d basically like to have is a !check command. When the user runs it, it checks the Discord user’s ID and on the site if an account with the same ID exists. If it does, it gives a role. If not, it doesn’t.