bugfix
This commit is contained in:
@ -37,7 +37,11 @@ module.exports = bot => {
|
||||
return e.reply(`holy fuck, Ausgabe wäre viel zu lang! (${output.length} Zeichen :DDDDDD)`);
|
||||
else {
|
||||
_contexts.set(`${e.network}.${e.channel}.${e.user.nick}`, context);
|
||||
sql.exec("update `useless` set `data` = ? where `trigger` = 'sandbox_js';", JSON.stringify(stringify([..._contexts]).replace(/\n/g, "").replace(/\t/g, "")))
|
||||
let tmp = JSON.stringify(stringify([..._contexts])
|
||||
.replace(/\n/g, "")
|
||||
.replace(/\t/g, "")
|
||||
.split("[native code]").join(""));
|
||||
sql.exec("update `useless` set `data` = ? where `trigger` = 'sandbox_js';", tmp)
|
||||
.then(() => {
|
||||
e.reply(output);
|
||||
})
|
||||
|
Reference in New Issue
Block a user