discordjs / commando-guide Goto Github PK
View Code? Open in Web Editor NEWBeginner's guide for discord.js-commando.
Home Page: https://www.gitbook.com/book/dragonfire535/discord-js-commando-beginners-guide/details
Beginner's guide for discord.js-commando.
Home Page: https://www.gitbook.com/book/dragonfire535/discord-js-commando-beginners-guide/details
In the run part of the code in .setAuthor the variable message should be msg.
(node:8470) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: SQLITE_CANTOPEN: unable to open database file
Here is the code I have:
const sqlite = require('sqlite');
const { CommandoClient, SQLiteProvider } = require('discord.js-commando');
const path = require('path');
const bot = new CommandoClient({
commandPrefix: config.prefix,
owner: config.owner,
unknownCommandResponse: false,
});
// SQL Priver
sqlite.open(path.join(__dirname, 'settings.sqlite3')).then((db) => {
bot.setProvider(new SQLiteProvider(db));
});
Has permissions (in my opinion), is kind of bad. While this isn't an issue, and more of a question... can you check for a role instead of a permission? Because there are certain times you want users to have certain roles, and absolutely no permissions for the server itself. So you either have to try to figure out which permission to give one role and higher. And that is just inefficient, I think.
I done this:
userPermissions: ['MANAGE_MESSAGES'],
Why it doesn't check for Permissions?
Hey dude,
I've just read your guide. Really cool, thanks for sharing your knowledge.
I'm opening this issue to say that your Xiao bot is a freaking awesome Commando learning resource. I dare to say that it's a must-check after finishing the guide.
IMHO the Xiao's repo should be mentioned somewhere in the guide.
Cheers!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.