Board Thread:General Coding Help/@comment-26126721-20181020235538/@comment-27345308-20181022211714

You're most likely going to need APIs for posting a message to a wall and for checking thread replies.

To post a message on a user's wall, make a POST request to /wikia.php?controller=WallExternal&method=postNewMessage&pagenamespace=1200&pagetitle={UsernameOfTheUser}&messagetitle={MessageTitle}&body={MessageText}&format=json&token={YourEditToken} Edit token can be obtained from /api.php?action=query&titles=%23&prop=info&intoken=edit&format=json (for example, [/api.php?action=query&titles=%23&prop=info&intoken=edit&format=json here]). Full documentation on  is on here. Edit tokens sometimes reset, so you should probably be fetching yours every time before posting a message.

After posting the message, you need to know how to check when a reply is posted. The POST call will return a JSON object with a  property. Inside that message property will be HTML for the posted message, but only thing you need from there is, which signifies the thread page's ID (you can run   regex on the message's body to extract the ID). After that, you should convert the obtained ID to a pagename using: /api.php?action=query&pageids={PageID}&format=json (for this thread, it would be [/api.php?action=query&pageids=20613&format=json here]). Full documentation on the query API can be found here.

So, when the user writes "done" in the channel, you have associated a thread page name with them and you can query the API for responses to that thread using: /api.php?action=query&generator=allpages&gapprefix={ThreadPageNameWithoutNamespace}&gapnamespace=1201&gaplimit=max&prop=revisions&rvprop=user|userid&format=json (for this thread, users that responded can be obtained [/api.php?action=query&generator=allpages&gapprefix=General_Coding_Help/@comment-26126721-20181020235538&gapnamespace=2001&gaplimit=max&prop=revisions&rvprop=user|userid&format=json here,] although the  parameter should be   when on message walls). Full documentation on the allpages API can be found, as you probably guessed, here.

If one of the users that responded is the user whose wall the bot posted on, you can consider the Discord user verified and associate their Discord ID with their FANDOM account ID (or username, but the account ID stays the same even when the username is changed).