MrAugu / simple-discordjs-dashboard

Simplest discord bot dashboard in NodeJS.
MIT License
247 stars 97 forks source link

switcher #14

Closed mafineeek closed 4 years ago

mafineeek commented 4 years ago

Hi, i'm using quick.db in my bot, and changing prefix works very good! (thx a lot). bUt i have leveling system too and i want to add something like this: https://i.imgur.com/QNJQB1K.gif and if is disabled returns false (like prefix, when you are changing it, it returns a post). but idk how to create backend for this switch. Can someone help?

bismitpanda commented 4 years ago

Try using bootstrap 4 inside the ejs file and set button type to submit. I hope this works cuz I am trying to do the same and I have not yet tested it. Use jquery .click and ajax to post it to dashboard.js

mafineeek commented 4 years ago

Try using bootstrap 4 inside the ejs file and set button type to submit. I hope this works cuz I am trying to do the same and I have not yet tested it. Use jquery .click and ajax to post it to dashboard.js

will try! thx