weebdev / commando Goto Github PK
View Code? Open in Web Editor NEW[DEPRECATED] ⚫ Commando Discord bot built on discord.js-commando.
Home Page: https://github.com/Gawdl3y/discord.js-commando
License: MIT License
[DEPRECATED] ⚫ Commando Discord bot built on discord.js-commando.
Home Page: https://github.com/Gawdl3y/discord.js-commando
License: MIT License
debian@vps395647:~/Commando$ node Commando.js
/MP/serhan/Commando/node_modules/sequelize/lib/sequelize.js:116
options.dialect = urlParts.protocol.replace(/:$/, '');
^
TypeError: Cannot read property 'replace' of null
at new Sequelize (/MP/serhan/Commando/node_modules/sequelize/lib/sequelize.js:116:42)
at Object. (/MP/serhan/Commando/structures/PostgreSQL.js:6:18)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object. (/MP/serhan/Commando/Commando.js:8:18)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.runMain (module.js:605:10)
at run (bootstrap_node.js:423:7)
at startup (bootstrap_node.js:147:9)
at bootstrap_node.js:538:3
See title.
It's all in the title. how do I fix this??
It's applied to users' accounts though.
Idk if it's intended or nah, but if it's like this, wouldn't the bank go negative if people withdrew all their money?
Is that how banks work 🤔💭?
If it is, then I get why the world went to shit a few years back and a few years before that and a few years before that and a few ...
Hey,
First of all, thanks for that code, it's great :)
I'm trying to put the music part in my commando bot. I took the commands/music folder and the structure/Song.js.
I also downloaded all node.js packages it required.
I can start the bot without a problem, the error occure when I launch the play command with an url (or with any word).
Here is the console error :
error: TypeError: Cannot read property 'id' of undefined at PlaySongCommand.run (C:\Users\***\botDiscord\Wall-E\commands\music\play.js:89:62) at <anonymous> at process._tickCallback (internal/process/next_tick.js:169:7)
And the message of the bot :
@Darkcl0w, couldn't obtain the search result video's details.
I followed the stack trace and the error and it leads me to that line in the play.js
const video2 = await this.youtube.getVideoByID(videos[0].id);
That means, even if I use a url it cant reach the video because it should gets it juste before, with these lines :
const video = await this.youtube.getVideo(url); return this.handleVideo(video, queue, voiceChannel, msg, statusMsg);
I'm sure there is something I don't understund but I don't know what...
Of course if you need other informations I'll send them to you.
Have a nice day/night,
Darkcl0w
Hello,
I'm sorry about writing here today, but when I add a playlist, that spam the console (with 1 error = 1 music into the play). Thats the full message :
Promise { _bitField: 18087936, _fulfillmentHandler0: { DiscordAPIError: Unknown Message at item.request.gen.end (/home/xxx/node_modules/discord.js/src/client/rest/RequestHandlers/Sequential.js:68:65) at then (/home/xxx/node_modules/snekfetch/src/index.js:241:21) at tryCatcher (/home/xxx/node_modules/bluebird/js/release/util.js:16:23) at Promise._settlePromiseFromHandler (/home/xxx/node_modules/bluebird/js/release/promise.js:512:31) at Promise._settlePromise (/home/xxx/node_modules/bluebird/js/release/promise.js:569:18) at Promise._settlePromise0 (/home/xxx/node_modules/bluebird/js/release/promise.js:614:10) at Promise._settlePromises (/home/xxx/node_modules/bluebird/js/release/promise.js:689:18) at Async._drainQueue (/home/xxx/node_modules/bluebird/js/release/async.js:133:16) at Async._drainQueues (/home/xxx/node_modules/bluebird/js/release/async.js:143:10) at Immediate.Async.drainQueues (/home/xxx/node_modules/bluebird/js/release/async.js:17:14) at runCallback (timers.js:800:20) at tryOnImmediate (timers.js:762:5) at processImmediate [as _immediateCallback] (timers.js:733:5) name: 'DiscordAPIError', message: 'Unknown Message', code: 10008 }, _rejectionHandler0: undefined, _promise0: undefined, _receiver0: undefined }
Thanks !
When using
if (message.author.id === '190775609532612608') { if (!argresult) argresult = null; if (message.content.startsWith(prefix + 'setgame')) { this.client.user.setGame(argresult) } } else { message.channel.sendMessage(${message.author}, You do not have Administrative permission to use that command) }
Code in Discord-Commando. The bot enables it's "Playing " tag correctly. After a few minutes it deletes that tag for no reason.
What is this? I have never heard of it. Where can I obtain my api key for this? Direct link please. Thanks!
I've found a very weird issue where the bot skips two songs when anyone does !skip and there's 3 or less people, making the skip instant.
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.