Closed KasparMatas closed 4 years ago
First attach SQLite to the bot: https://dragonfire535.gitbooks.io/discord-js-commando-beginners-guide/content/setting-a-database-provider.html Then have the bot take it's prefix value from the database: https://discord.js.org/#/docs/commando/master/class/SQLiteProvider And lastly add a command to the owner only group to change the database value.
Porblems with version mismatches with the linked solutions so either downgrade sqlite or use better-sqlite3: https://github.com/discordjs/Commando/issues/302#issue-598153905
First attach SQLite to the bot: https://dragonfire535.gitbooks.io/discord-js-commando-beginners-guide/content/setting-a-database-provider.html Then have the bot take it's prefix value from the database: https://discord.js.org/#/docs/commando/master/class/SQLiteProvider And lastly add a command to the owner only group to change the database value.