#Possible solution for sharing rulings off of Discord

10 messages · Page 1 of 1 (latest)

next apex
#

One pain point that’s comes up a few times in conversations in the Warmachine channel is the fact that players need access to the Discord to see rulings from the Infernals and dev team. This can be a problem for folks who don’t have a Discord account.

I think one way that this might be solved is by creating a Discord bot that can read the rules channel and write the contents to a DB that can be read from a page on the SFG website. I haven’t played with the Discord API in a while so I’m not 100% sure how it handles the forums feature but it seems like it might be worth exploring.

I’m gonna try playing with it this week and post my findings here

silver quarry
#

I love this solution! My other general question was whether these can be integrated into an FAQ on the app. Additionally I like both. More points of intersection the better. Thanks for posting this! @vestal nacelle @trim plume wanted to make sure you both saw this, so you could share any thoughts or ideas you have.

next apex
#

I mean, if it can write to an external DB you can probably read it with anything I would think. I haven’t worked with Unity though so I’m not 100% sure

vestal nacelle
#

We are actually looking into several ways to improve the process and availability of FAQ information. I'll bring up a possible Discord bot next time we have those discussions.

next apex
#

I’ll poke at it either way just cause I’m curious now and I have a test server for these sorts of things. I’ll share what I figure out in case it ends up being useful

next apex
#

Okie dokie, so I did some messing around in my local environment this morning and the results are pretty positive.

  • I created a bot with permissions to read message history and added it to my personal sandbox server
  • The bot is set up with the MESSAGE_CONTENT and GUILD_MESSAGES intents. This gives the bot permission to access messages in the Server and the ability to see their content and edit history.
  • I wrote a slash command that takes a Discord message link and finds the content of that message. The command can be configured to require specific permissions so that only Infernals and Admins can use it.

At that point the message content is available in the bot code and it's pretty straightforward to write it to a DB somewhere and then access it from another application such as the SFG website or the Warmachine App. The workflow for this version would involve having an Infernal manually use the bot and give it the link to whatever ruling needs to be posted, but from the looks of the docs there's probably a way you could have it monitor the Rules-FAQ channel that Loren created and have it run automatically whenever there is a change.

The code is pretty simple but I'm happy to share it if y'all want it.

silver quarry
#

Might want to do it into GitHub.

#

Then drop the GitHub link, maybe simpler.

silver quarry
#

From @obtuse idol — Having to manually approve the app updates every week is getting annoying, tbh.
Why is it not on the app store or Google play and updating automatically?