KasparMatas / YourButler

Discord bot for game matchmaking
Apache License 2.0
1 stars 0 forks source link

Command to change bot prefix #2

Closed KasparMatas closed 4 years ago

KasparMatas commented 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.

KasparMatas commented 4 years ago

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