Open e-dreyer opened 1 year ago
A good addition would be to define a health
or status
of the bot. When the bot goes online
or offline
or an error is encountered, the user should be able to set these fields for users of the bot
account to see.
Here are the docs relevant to this issue and API calls which will be required.
Looking at this
Update the profile for the currently logged-in user or the bot
:
note
: is the user’s bio.I think this should be ignored, user can use an app or the web UI to upload images.
avatar
: and ‘header’ are images. As with media uploads, it is possible to either pass image data and a mime type, or a filename of an image file, for either. This would be a great addition for responding to the health of the bot.
locked
: specifies whether the user needs to manually approve follow requests. This should just be added for flexibility. Maybe the user wants to switch between the two and it is an arbitrary implementation.
bot
: specifies whether the user should be set to a bot.
discoverable
: specifies whether the user should appear in the user directory.
This should be a function of its own allowing for a List
of 4 values.
fields
: can be a list of up to four name-value pairs (specified as tuples) to appear as semi-structured information in the user’s profile.
Problem
Part of the simplification of creating a
bot
is defining the profile of thebot
. Users should be able to create templates as mentioned in #7 to define the profile, bio and fields of the profile of the bot.