Your browser does not support JavaScript or its disabled!
Please turn it on, or be aware that some features on this website will not work correctly.
354
config hash to clipboard #98
This copies the hash of a success config upload in vbot to clipboard.
File: bot.lua | 442b | 7 lines.
-   displayInfoBox(tr("Succesful config upload"), tr("Config %s has been uploaded.\n%s", config, data["message"]))
+   local regex = ': (.*)'
+   local re = regexMatch(data["message"], regex)[1]
+   if #re ~= 0 then
+     g_window.setClipboardText(re[2])
+   end
+   displayInfoBox(tr("Succesful config upload"), tr("Config %s has been uploaded.\n%s", config, data["message"] .. (#re ~= 0 and '\n\n' .. re[2] ..' copied to clipboard')))

29 May 2022