Giter VIP home page Giter VIP logo

commando-guide's People

Contributors

devnoiseconsulting avatar dragonfire535 avatar gitbook-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

commando-guide's Issues

SQLite Provider section does not work. I get a promise rejection

(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));
});

Roles instead of hasPermissions?

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.

User Permissions

I done this:

userPermissions: ['MANAGE_MESSAGES'],

Why it doesn't check for Permissions?

[suggestion] more "real life" examples

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.