Git Product home page Git Product logo

ghostybot's Introduction

GhostyBot is deprecated for those who didn't already know. No support will be given any further. This Discord server will also be read-only.

Thank you all for your understanding. The code is still compatible with Discord.js v13. Should be fairly simple to fork and maintain it.

ghostybot's People

Contributors

casperiv0 avatar cheseman avatar codacy-badger avatar commanderroot avatar deltacoderr avatar dependabot[bot] avatar green-thanos avatar iamgobinda avatar lackypal avatar lakhindarpal avatar luisfelipesdn12 avatar m-bobi avatar mertushka avatar mtrognome avatar sabyr-cpu avatar simonetx avatar simxnet avatar totto16 avatar tovade avatar unloopedmido avatar xaliks 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ghostybot's Issues

Cant start bot

This error comes when starting bot

npm install @components/modal @config/discord-config assets @components/Footer src handlers models @components/reaction-role react-i18next @components/Switch @config/APIs utils @components/Loader @components/AlertMessage @scripts/generateCommandList structures @components/Navbar
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@components%2fmodal - Not found
npm ERR! 404
npm ERR! 404 '@components/modal@latest' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/runner/.npm/_logs/2022-02-23T07_00_15_840Z-debug.log
exit status 1

Replit: Package operation failed.

how can i fix it
i tried npm install not workibg after that also

Mongoose Error

Description
Error with the DB, however, the URI is all good :/
image

Request for help command

Regarding your todo in the help command:
https://github.com/Dev-CasperTheGhost/ghostybot/blob/1c0a08c73f7eda0d91a9bd1f8f9d9332ab0b02a0/src/interactions/util/Help.ts#L43

What I have in my bot is that every command has a category key.
Then in my help command I loop through all my commands and create a collection with all the categories and the commands that belong that that category.

const categories: Collection<string, string[]> = new Collection();

for (const command of client.commands.values()) {
  // If the command doesn't have a category, move to the next one
  if (!command.category) continue;

  const category = command.category;

  // If the category isn't in the collection yet, add it along with the command.
  // If the category is already in the collection, add the command to it.
  if (!categories.has(category)) {
    categories.set(category, [command.name]);
  } else {
    const cmd = categories.get(category);
    cmd?.push(command.name);
  }
}

When I need all the categories, I loop through the keys of the collection:

for (const category of categories.keys()) {
  // Add options to select menu
}

When I need the commands for the selected category, I get the respective category:

if (categories.has(selectedCategory)) {
  const commands = categories.get(selectedCategory);

  // Simplified for this issue
  embed.setDescription(`\`${commands?.join('`, `')}\``)
}

Error whenever I try to build

This is the error I get whenever I run npm run build:

./src/commands\admin\set.ts:17:54
Type error: Property 'dashboard' does not exist on type '{}'.```

Hactoberfest Participate Request

Why don't you participate in hactoberfest ? It's great to do that. Please add this repo on hactoberfest. πŸ™
By doing this, i think more people will come to contribute.

Commands don't work

Describe the bug
Commands don't work and show "This interaction failed message"

Command
any command

To Reproduce
Steps to reproduce the behavior:

1.execute any command

Expected behavior
expected to work

Screenshots
If applicable, add screenshots to help explain your problem.
image

Suggest

Hi, I have such a suggestion.... Make Server Stats Channels

Help-me

Dashboard: Internal Server Error
Console: Error: secretOrPrivateKey must have a value
image
image

error while starting

Description
Please provide as much info as you can.

There is a big error in console while starting the bot , something related to sqlite.

Need Help

Can u please tell if I want dashboard true then I have to buy a domain ? Or website?
& also one thing that reaction role command does not we work

Invites

Description
Add inv tracker to made your bot popular.

Thanks

DiscordAPIError

[ERROR][UNHANDLED ERROR][15-01-2021, 13:29:46 pm]: DiscordAPIError: Invalid Form Body embed.image.url: Scheme "unknown image type" is not supported. Scheme must be one of ('http', 'https'). at RequestHandler.execute (C:\Users\Administrator\Desktop\GhostyBot Main\node_modules\discord.js\src\rest\RequestHandler.js:154:13) at runMicrotasks (<anonymous>) at processTicksAndRejections (internal/process/task_queues.js:93:5) at async RequestHandler.push (C:\Users\Administrator\Desktop\GhostyBot Main\node_modules\discord.js\src\rest\RequestHandler.js:39:14)

I can’t figure out what is this error! Can you please explain??

Discord-starboards breaking changes

Hey, I just pushed a new update on the discord-starboards develop branch. It fixes many bugs and introduces new features like the NSFW channel filter, custom emojis, ...

Unfortunately it may break your code.

Consider updating your code and let me know if you encounter any bugs. If all goes well, let me know and I'll merge the develop branch to the main branch.

Have a nice evening,

Simon.

PS: The delete and deleteStarboard methods have changed

If the error is related to alexflipnote api, well that api is no longer provided, if that's not the case then what's wrong here?

[email protected] start
cross-env DEV_MODE=false node -r ts-node/register -r tsconfig-paths/register ./dist/index.js
[WARNING][ENV_OPTIONS][13.02.2022, 20:26:00]: env option: "ALEXFLIPNOTE_API_KEY" was not provided in a .env file. This may be required for some commands.
/workspace/node_modules/mongoose/lib/cursor/QueryCursor.js:144
QueryCursor.prototype.map = function(fn) {
^
TypeError: Cannot assign to read only property 'map' of object '#'
at Object. (/workspace/node_modules/mongoose/lib/cursor/QueryCursor.js:144:27)
at Module._compile (node:internal/modules/cjs/loader:1097:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1151:10)
at Object.require.extensions. [as .js] (/workspace/node_modules/ts-node/src/index.ts:1361:43)
at Module.load (node:internal/modules/cjs/loader:975:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:999:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object. (/workspace/node_modules/mongoose/lib/query.js:12:21)
at Module._compile (node:internal/modules/cjs/loader:1097:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1151:10)
at Object.require.extensions. [as .js] (/workspace/node_modules/ts-node/src/index.ts:1361:43)
at Module.load (node:internal/modules/cjs/loader:975:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:999:19)
at require (node:internal/modules/cjs/helpers:102:18)

Audit logs not showing

After bot online when I set audit channel it says successfully set audit channel but then it not showing any logs in audit channel! Help me how to fix it ?

Prefix

How do we change the prefix? I cant seem to find a file where its defined

Internal server error need help

Error: payload is required
    at Object.module.exports [as sign] (C:\Users\Administrator\Desktop\new ghosty\node_modules\jsonwebtoken\sign.js:111:20)
    at handler (C:\Users\Administrator\Desktop\new ghosty\.next\server\pages\api\auth\callback.js:178:69)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at apiResolver (C:\Users\Administrator\Desktop\new ghosty\node_modules\next\next-server\server\api-utils.ts:86:5)
    at Server.handleApiRequest (C:\Users\Administrator\Desktop\new ghosty\node_modules\next\next-server\server\next-server.ts:1076:5)
    at Object.fn (C:\Users\Administrator\Desktop\new ghosty\node_modules\next\next-server\server\next-server.ts:950:27)
    at Router.execute (C:\Users\Administrator\Desktop\new ghosty\node_modules\next\next-server\server\router.ts:247:24)
    at Server.run (C:\Users\Administrator\Desktop\new ghosty\node_modules\next\next-server\server\next-server.ts:1175:23)
    at Server.handleRequest (C:\Users\Administrator\Desktop\new ghosty\node_modules\next\next-server\server\next-server.ts:568:14)

When I login in dashboard it shows internal server error & this errors show in console

Build Error and Database error

Error whenever I try to run npm run build:
Error:

info  - Checking validity of types  

Failed to compile.

./src/pages/_document.tsx
1:1  Error: next/document should not be imported outside of pages/_document.js.

Additional Info:
Discord.js Version: 13
Repo version: Latest
Node.js Version: 16

Need Help

I need some new features in stats command that how many commands execute function & how many music playing. Can you add this features??

Dashboard not working!

I was host it on local PC & dashboard url is http://localhost:3030, it open website properly but not open dashboard, I put jwt secret key perfectly & callback url perfectly but not open dashboard.

Spelling Mistake

Describe the bug
There is a spelling mistake at line #36
Command
**${user.usernme}#${user.discriminator}** just left us.,

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'https://github.com/Dev-CasperTheGhost/ghostybot/blob/a8e9e072e79386c12754c29c3909c41b31997846/src/events/guildMemberRemove.js#L36'
  2. Rename ${user.usernme} to ${user.username}

Expected behavior
It should be ${user.username}

Screenshots
https://cdn.discordapp.com/attachments/704954812369731604/764152301388169246/IMG_20201009_211812.jpg

The Newbie is Back!

Description
Hello again Casper, it's been a long time. I hope you're doing well.
I'm trying to setup your bot but of course I'm not doing it right and I need your help.
I managed to setup everything (I think)

I am just getting the following error.

MongooseError: Operation `bots.findOne()` buffering timed out after 10000ms
    at Timeout.<anonymous> (/ghostybot/node_modules/mongoose/lib/drivers/node-mongodb-native/collection.js:184:20)
    at listOnTimeout (internal/timers.js:554:17)
    at processTimers (internal/timers.js:497:7)

I am using https://cloud.mongodb.com

Thanks a lot!
Great job once again!

Can't wait to be back and try your new CAD too!

What is 'chalk'

Description
Hi! I tried to create a bot similar to your ghostybot. When I try to run my bot, it displays something like this:

Error: Cannot find module 'chalk'

So I can't run the bot. I was looking for a chalk file in your GitHub repository but found nothing. Can You help me?

Need help

Description
Please provide as much info as you can.

2020-11-19 (1)

Error

[email protected] start /home/runner/ghostybot
BUILD_PATH=true DEV_MODE=false node -r ts-node/register -r tsconfig-paths/register ./dist/index.js

Error: Cannot find module '/home/runner/ghostybot/dist/index.js'
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:924:15)
at Function.Module._resolveFilename (/home/runner/ghostybot/node_modules/tsconfig-paths/lib/register.js:75:40)
at Function.Module._load (node:internal/modules/cjs/loader:769:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:76:12)
at node:internal/main/run_main_module:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: BUILD_PATH=true DEV_MODE=false node -r ts-node/register -r tsconfig-paths/register ./dist/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-08-26T13_08_04_563Z-debug.log

Dashboard

Can you pls explain why dashboard not working...how can i start dashboard??

API Keys

Description
Please provide as much info as you can.

Where can I find all the needed api keys and how?

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.