firezthegreat / 1shot Goto Github PK
View Code? Open in Web Editor NEWAll my works - https://github.com/FirezTheGreat (latest music commands/djs v14/es6 modules)
License: Apache License 2.0
All my works - https://github.com/FirezTheGreat (latest music commands/djs v14/es6 modules)
License: Apache License 2.0
So i have my bot and i would like to add some commands and make separate folders for them (ex Like giveaway and stuff) but when i do it i get errors. So i guess i will have to change some files so how can i make it work.
When i am using the music commands they are not working
I tried, created test.js and put this code inside but does not appear in the help, how do I do it?
const { MessageEmbed } = require('discord.js');
module.exports = {
config: {
name: "test",
aliases: [],
category: "Owner",
description: "Test if bot run",
usage: "",
accessableby: "owner"
},
run: async (bot, message, args) => {
let owner = '845768796841050112'
if (!owner.includes(message.author.id))return;
const embed = new MessageEmbed()
.setTitle('I am working!')
.setColor('GREEN')
.setImage('https://media.giphy.com/media/gw3IWyGkC0rsazTi/200.gif');
message.channel.send(embed);
}
}
Hello, after several attempts i'm done ! I couldn't figure out what the genius api is can you help ? Thank you
Hey there! I appreciate your work! but I have a suggestion. This code is being used by MANY bots I saw. I saw the same code in many bots, So, I knew it was a code from a public github repo. And so, eventually I found this code. And to make things worse, These copy bots are also available in top.gg! I don't like anyone who copies someone's code and tell that it's "Their bot". So I would appreciate if you would take down this repo or make it private. It's Your hardwork! and not their's!
hello how to hide token of bot bez my token sometook and nuked my server so i aksed
I dont now why not working command .instasearch. Bot just says "I couldn't find that account".
Hello, So I was trying to self host this bot, while trying to start it I got a SQlite error, as I dont use sqlite, could you please help me with this:
**Error: Could not locate the bindings file. Tried:
→ C:\Users\upadh\Desktop\Discord Bots\Softii\node_modules\better-sqlite3\build\better_sqlite3.node
→ C:\Users\upadh\Desktop\Discord Bots\Softii\node_modules\better-sqlite3\build\Debug\better_sqlite3.node
→ C:\Users\upadh\Desktop\Discord Bots\Softii\node_modules\better-sqlite3\build\Release\better_sqlite3.node
→ C:\Users\upadh\Desktop\Discord Bots\Softii\node_modules\better-sqlite3\out\Debug\better_sqlite3.node
→ C:\Users\upadh\Desktop\Discord Bots\Softii\node_modules\better-sqlite3\Debug\better_sqlite3.node
→ C:\Users\upadh\Desktop\Discord Bots\Softii\node_modules\better-sqlite3\out\Release\better_sqlite3.node
→ C:\Users\upadh\Desktop\Discord Bots\Softii\node_modules\better-sqlite3\Release\better_sqlite3.node
→ C:\Users\upadh\Desktop\Discord Bots\Softii\node_modules\better-sqlite3\build\default\better_sqlite3.node
→ C:\Users\upadh\Desktop\Discord Bots\Softii\node_modules\better-sqlite3\compiled\12.18.2\win32\x64\better_sqlite3.node
→ C:\Users\upadh\Desktop\Discord Bots\Softii\node_modules\better-sqlite3\addon-build\release\install-root\better_sqlite3.node
→ C:\Users\upadh\Desktop\Discord Bots\Softii\node_modules\better-sqlite3\addon-build\debug\install-root\better_sqlite3.node
→ C:\Users\upadh\Desktop\Discord Bots\Softii\node_modules\better-sqlite3\addon-build\default\install-root\better_sqlite3.node
→ C:\Users\upadh\Desktop\Discord Bots\Softii\node_modules\better-sqlite3\lib\binding\node-v72-win32-x64\better_sqlite3.node
at bindings (C:\Users\upadh\Desktop\Discord Bots\Softii\node_modules\bindings\bindings.js:126:9)
at Object. (C:\Users\upadh\Desktop\Discord Bots\Softii\node_modules\better-sqlite3\lib\database.js:6:40)
at Module._compile (internal/modules/cjs/loader.js:1138:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
at Module.load (internal/modules/cjs/loader.js:986:32)
at Function.Module._load (internal/modules/cjs/loader.js:879:14)
at Module.require (internal/modules/cjs/loader.js:1026:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object. (C:\Users\upadh\Desktop\Discord Bots\Softii\node_modules\better-sqlite3\lib\index.js:2:18)
at Module._compile (internal/modules/cjs/loader.js:1138:30) {
tries: [
'C:\Users\upadh\Desktop\Discord Bots\Softii\node_modules\better-sqlite3\build\better_sqlite3.node',
'C:\Users\upadh\Desktop\Discord Bots\Softii\node_modules\better-sqlite3\build\Debug\better_sqlite3.node',
'C:\Users\upadh\Desktop\Discord Bots\Softii\node_modules\better-sqlite3\build\Release\better_sqlite3.node',
'C:\Users\upadh\Desktop\Discord Bots\Softii\node_modules\better-sqlite3\out\Debug\better_sqlite3.node',
'C:\Users\upadh\Desktop\Discord Bots\Softii\node_modules\better-sqlite3\Debug\better_sqlite3.node',
'C:\Users\upadh\Desktop\Discord Bots\Softii\node_modules\better-sqlite3\out\Release\better_sqlite3.node',
'C:\Users\upadh\Desktop\Discord Bots\Softii\node_modules\better-sqlite3\Release\better_sqlite3.node',
'C:\Users\upadh\Desktop\Discord Bots\Softii\node_modules\better-sqlite3\build\default\better_sqlite3.node',
'C:\Users\upadh\Desktop\Discord Bots\Softii\node_modules\better-sqlite3\compiled\12.18.2\win32\x64\better_sqlite3.node',
'C:\Users\upadh\Desktop\Discord Bots\Softii\node_modules\better-sqlite3\addon-build\release\install-root\better_sqlite3.node'
,
'C:\Users\upadh\Desktop\Discord Bots\Softii\node_modules\better-sqlite3\addon-build\debug\install-root\better_sqlite3.node',
'C:\\Users\\upadh\\Desktop\\Discord Bots\\Softii\\node_modules\\better-sqlite3\\addon-build\\default\\install-root\\better_sqlite3.node'
,
'C:\Users\upadh\Desktop\Discord Bots\Softii\node_modules\better-sqlite3\lib\binding\node-v72-win32-x64\better_sqlite3.node'
]
}**
i dont know i am getting this same error.... all time
internal/modules/cjs/loader.js:883
throw err;
^
Error: Cannot find module 'dblapi.js'
Require stack:
Why instasearch command always give error in console log which is "UnhandledPromiseRejectionWarning: DiscordAPIError: Unknown Message"
Please consider adding reaction roles to 1shot If you need help go here: https://github.com/stuyy/Discord.JS-V12-Tutorials/tree/master/src/commands/rolereactions
Hello,
Just got recommended this on the github homepage. You seem to be doing some good work!
lyrics.js
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: node index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/runner/.npm/_logs/2021-03-28T08_10_29_597Z-debug.log
its showing this error and also
how can i get the dbl api key
bot.channels.cache.get(message.channel.id).send(x.join(" "));
^
TypeError: Cannot read property 'channel' of undefined
Error is in console.js file
How can i add a command to help?
update your bot to discord js v13 asap ...
Bruh it's serious now. I saw a bot with the same code a few days ago, and as mentioned by NotYourFrosty , I too saw some bots with same code. When I asked the dev who was the owner of the bot, he said that it was FULLY coded by him and his bot was too verified. But when I asked him a simple question about discord.js, he blocked me lol without answering. I would HIGHLY recommend you making this repo private. SO MANY are copying this code. It's getting famous day by day -_- and this is leading everyone to copy this code and publish their bots on top.gg without giving credits :(
phonecall.js
function inPhoneCall (channel) {
return client.phone.some(call => call.origin.id === channel.id || call.recipient.id === channel.id);
}
}
};
some
is not defined can you tell me how to define this
CAN WE SELF HOST THE BOT ??? WILL YOU PROVIDE ANY SUPPORT TO US ??
Hey Owner,
I'm trying to get in touch with you as ive tried adding the phone system to my bot but im stuck on the command phonecall as its giving me so many error so can you please provide me your discord user or support server where i can get some help as soon as possible please.
How to pick up call
Umm Sorry i tend to make tons of umm issues so........ sorry
But how can i make a reaction based help command?
Hey so I was looking through the code and the first thing I saw in the nodejs file is how The ping thingy works even when done like this Let's say the bot's name is Hello so if you type Kick @hello (Just an example) it still replies with the embed So if possible make it so it only works when it is The first and only thing in a message Like @hello would work but @hello sucks wouldn not. Also almost every clone bot of this repo got deleted from top.gg lol.
How to keep this bot run 24/7
hi,i been hosting this bot for a time buti don't know how to set the owner id for the bot so i can use the serverlist command
I have a little problem with command join
(node:7832) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'c onnection' of undefined
at Object.run (/root/1SHOT/commands/music/join.js:26:23)
at module.exports (/root/1SHOT/events/guild/message.js:34:38)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
(Use node --trace-warnings ...
to show where the warning was created)
(node:7832) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To termina te the node process on unhandled promise rejection, use the CLI flag --unhandle d-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejectio ns_mode). (rejection id: 1)
(node:7832) [DEP0018] DeprecationWarning: Unhandled promise rejections are depre cated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
What should i can do ?
Fontconfig error: Cannot load default config file
/home/runner/1SHOT/handler/command.js:8
bot.commands.set(pull.config.name, pull);
^
TypeError: Cannot read property 'name' of undefined
at load (/home/runner/1SHOT/handler/command.js:8:42)
at /home/runner/1SHOT/handler/command.js:12:116
at Array.forEach ()
at module.exports (/home/runner/1SHOT/handler/command.js:12:103)
at /home/runner/1SHOT/index.js:15:71
at Array.forEach ()
at Object. (/home/runner/1SHOT/index.js:15:33)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
exit status 1
every time I run It shows this error
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Hello, i'm using your musics commands as templates (not copy pasting). But the issue is when a music is playing i'm getting NaN:NaN as a result for the music length
Hi, i don't know how to contact you. Your project is awesome , but the thing is i don't want some features like nsfw,music.So, when i deleted the nsfw file/folder i won't run..How to solve this issue..Reply asap tq
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.