Components
I have read in your last updates that you wanted to include a registration process in the DACH Support Bot.
I would suggest the following process, it follows roughly the idea of a handshaking.
At first the user needs to use a command on the Discord side, something like !register and give as an argument the steem name he wants to register.
E.g. !register lanatir
This would lead ot a privat channel being opened to the Discord User of lanatir and sending him the details on what to do on the steem Blockchain.
Inside this details you would need to use a randomly generated string of 24 characters, that you directly need to save into your central registry database table, putting the discord user, the steem user, the status (e.g pending completion ) and the string that has been generated.
So basically the user who wants to register a steem name <>discord name combination needs to prove that he is the owner of the steem account, this is done by putting up a transaction on steem to the DACH-Account including those details that are send in the private channel.
Once the transaction has been received by the bot the status of the registration can be set to ok and the discord<>steem name connection is proven.
Proposal
You would need to include the necessary steps in the registration function, as well as importing the secrets module to generate the best random key available.
As a second part you also need to implement a listening function within the bot, that triggers a process once a transaction is received from a steem name that is on the central list marked as pending completion.
This can be achieved using the steem module you already have within your code.
Mockups / Examples
I can add a control flow if you want me to. Just tell me what you think!
Benefits
Implementing this would lead to a safe connection between a discord name and a steem account name, making it possible to open up additional possibilities for registered users. On the other hand side this also will make it much harder to abuse the bot, because the connection from a discord name to a steem name is a exclusive one. So if you want to have 2 registered discord names, out of whatever reason, you also need to have 2 steem accounts.
For sure this is only raising the bar a bit and does not make abuse impossible, but it is a good start.
Yours
Lanatir
Posted on Utopian.io - Rewarding Open Source Contributors