Code Monkey home page Code Monkey logo

1shot's People

Contributors

dependabot[bot] avatar firezthegreat avatar khanmanan 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  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

1shot's Issues

Self-Hosting reated

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.

I tried to add a command to the help but it doesn't work

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

}

I'm confused

Hello, after several attempts i'm done ! I couldn't figure out what the genius api is can you help ? Thank you

Others Copy Your Repository !!

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!

help

hello how to hide token of bot bez my token sometook and nuked my server so i aksed

Error while starting the bot.

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'
]
}**

an Error while running the bot...

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:

  • C:\Users\stifm\Desktop\Last try\index.js
    ←[90m at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)←[39m
    ←[90m at Function.Module._load (internal/modules/cjs/loader.js:725:27)←[39m
    ←[90m at Module.require (internal/modules/cjs/loader.js:952:19)←[39m
    ←[90m at require (internal/modules/cjs/helpers.js:88:18)←[39m
    at Object. (C:\Users\stifm\Desktop\Last try\index.js:4:13)
    ←[90m at Module._compile (internal/modules/cjs/loader.js:1063:30)←[39m
    ←[90m at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)←[39m
    ←[90m at Module.load (internal/modules/cjs/loader.js:928:32)←[39m
    ←[90m at Function.Module._load (internal/modules/cjs/loader.js:769:14)←[39m
    ←[90m at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)←[39m {
    code: ←[32m'MODULE_NOT_FOUND'←[39m,
    requireStack: [ ←[32m'C:\Users\stifm\Desktop\Last try\index.js'←[39m ]
    }

instasearch command

Why instasearch command always give error in console log which is "UnhandledPromiseRejectionWarning: DiscordAPIError: Unknown Message"

Hello!

Hello,

Just got recommended this on the github homepage. You seem to be doing some good work!

error

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

HELP

How can i add a command to help?

Others copying your repo!

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

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

Self hosting

CAN WE SELF HOST THE BOT ??? WILL YOU PROVIDE ANY SUPPORT TO US ??

Trying to Add it to custom server Need support server

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.

Self-Hosting related #2

Umm Sorry i tend to make tons of umm issues so........ sorry
But how can i make a reaction based help command?

Bug Report

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.

Req

How to keep this bot run 24/7

Problem with join

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 ?

how to fix this error

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

level.js

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.

Problem in play.js

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

Hey buddy

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

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.