Questions tagged [commando]

A command framework for discord.js

Commando is the official command framework for discord.js. It is flexible, fully object-oriented, easy to use, and makes it trivial to create your own powerful commands.

NPM

79 questions
3
votes
1 answer

Broadcast All Command not auto deleting broadcasts - Discord.js-Commando

So I'm trying to get my broadcast command to auto delete the broadcasts after a set amount of time. The person I built the EBS bot for wants it to auto delete after 30 minutes. We got it to send to all text channels as he wanted but trying to make…
user14267797
2
votes
2 answers

discord.js-commando enabling and working with mongodb

I'm trying to create a discord bot, specifically the wedding team. I am using a MongoDB database. Now everything works and is saved, but there is one problem, the data is saved for the second and third rounds, etc. That is, the checks that I added…
user18433026
2
votes
2 answers

disable automatic error - discord.js-commando

I'm trying to write a discord bot. Now there is one command in which another user is selected. So far, all commands work except for one, checking for the existence of a user. That's how I do it: if (!userToMarry) { return…
user18433026
2
votes
5 answers

Java parsing command line arguments ( args[]) into an int[][] Type

Can somebody please tell me how to parse the following into an int[][] Type. This is the structure of numbers which are typed into the java args "1,2;0,3 3,4;3,4 " (the first 4 numbers should represent a matrix as well as the last 4 numbers; so i…
xImJugo
  • 23
  • 5
2
votes
2 answers

I want to make interval message discord bot

I want to make that discord bot will send message interval for ex. in 10 minutes but it throws error! Please help me! (sorry for my english it is not perfect) Here is code: const Commando = require('discord.js-commando'); const bot = new…
Vblacqe
  • 35
  • 1
  • 2
  • 5
2
votes
1 answer

How do I make a Commando bot respond to a message with a certain substring anywhere in the message

I'm working with a friend to add something to an existing Discord bot. There a number of working commands that use discord.js-commando, so we're tied to using Commando. The guild we're doing this for has moved some resources from an old site to a…
Matthew Denaburg
  • 163
  • 1
  • 15
2
votes
1 answer

TypeError: MOD.hasPermissions is not a function

I got the error: TypeError: MOD.hasPermissions is not a function! Can you please help me? const commando = require('discord.js-commando'); class KickCommand extends commando.Command { constructor(client) { super(client, { name:…
j122j
  • 35
  • 2
  • 5
1
vote
0 answers

discord.js lock command throws an error, cannot read 'deny' of undefined

I made a lock command for my bot which runs on a framework called, discord.js-commando. This command locks a channel by not letting users send messages. The error is at line if(perms.deny.has('SEND_MESSAGES'). The error is Cannot read property…
Darshan B
  • 658
  • 1
  • 5
  • 19
1
vote
1 answer

Discord.js Commando need to havehasPermisison() needs to make it async or wait for database query

So I am working on a discord bot using discord.js and its commando framework. I store some information in a mongodb database like server prefix or roles for certain commands to run. The commando framework has a function called hasPermission(message)…
A.Karwowski
  • 205
  • 1
  • 9
1
vote
2 answers

discord.js Commando custom help command

Is there any possible way to make the discord commando send a message in chat instead of dm's when doing the !help command for example. I want to keep it with commando framework since it's easy to make commands with it and I like how you can do…
Rdimo
  • 378
  • 2
  • 14
1
vote
1 answer

How do I disable specific commands in discord.js-commando

So I have been searching for a while now but I cant find a way to disable the default commands for commando I looked at this article:How to disable defaults commands on discord.js-Commando?. But it didn't work for me here is my main.js code.
DA Skull
  • 23
  • 7
1
vote
1 answer

Discord.JS-Commando Purge.JS Not Firing

Yo, so I'm trying to readd my purge command to a discord bot I'm building and it keeps claiming the number is invalid. Basically it's throwing the first error in the code response. Does anyone know what I messed up in my code? I would more than…
user14267797
1
vote
3 answers

sqlite gives error when I use discordjs-commando setProvider()

Im using the discordjs-commando and client.setProvider( sqlite.open(path.join(__dirname, 'settings.sqlite3')).then(db => new Commando.SQLiteProvider(db)) ).catch(console.error); is giving me this error Error: sqlite: filename is not defined Any…
insberr
  • 39
  • 9
1
vote
2 answers

Is there any difference using 'return' after Discord.js function?

I am coding a Discord bot with a Commando framework and I was wondering if the usage of return keyword after last Discord.js or Commando function in the given function is needed to end/finish the command or is it not needed at all? I want to make…
Haldryn
  • 13
  • 4
1
vote
1 answer

Discord JS: UnhandledPromiseRejectionWarning: Error: Shard's Client took too long to become ready

I have a discord bot, which just reached 2500 servers, and it stopped logging in, because apparently there is a limit of 2500 and then you need to use Sharding, which I'd never heard of until now. So I added a ShardManager to my bot, as per…
CMR
  • 1,366
  • 4
  • 15
  • 31
1
2 3 4 5 6