You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this channel holds the configuration data and maybe even the complete bot state either in serialized or in human-readable form. for configuration parameters, human-readable might be favourable, but for arbitrary state base64 most probably is a good format.
Proposal (in pseudo julia code):
functionstartup()
haschannel("botconfig") ||createchannel("botconfig")
global configchannel =getchannel("botconfig")
global configmsg =getconfigmessage(message->startswith(message, "hojbot"))
global config =loadsettings(content(configmsg)) #sets config dictionaryendfunctioncommander(c, m::Message, Val{:config})
k, v =parseconfig(m)
updateconfig!(k, v)
endfunctionupdateconfig!(k,v)
msg =generateconfigmsg()
edit!(configmsg, msg)
config[k] = v
end
The text was updated successfully, but these errors were encountered:
this channel holds the configuration data and maybe even the complete bot state either in serialized or in human-readable form. for configuration parameters, human-readable might be favourable, but for arbitrary state base64 most probably is a good format.
Proposal (in pseudo julia code):
The text was updated successfully, but these errors were encountered: