I'm making a bot with node.js & tmi.js... As well, i want to make a "command" to query a random phrase from my database & reply at chat.
I know how to do the command & the query, but I don't know how to save the "result" of the query in to "var" & use it as string.
I tried "String(Object)" but it reply me "Object, Object".
https://gyazo.com/5fd1c04c1790dc42a95e32533b27ff8b https://gyazo.com/8d4097e3818449bfb4a3c3dac1b73ef9 That is my actually code &... That... is what results https://gyazo.com/5746aca496ec8739751f6eac3682c1fc