Giter VIP home page Giter VIP logo

majo.exe's Introduction

Header

Discord Discord.js CodeQL Checks GitHub License

โœจ Features

  • โš™๏ธ Fully Customizable: Tailor Majo.exe to your preferences with comprehensive customization options.
  • ๐ŸŒ† Built-in Dashboard: Manage your Majo.exe settings effortlessly through our intuitive dashboard.
  • ๐Ÿ“ Easy Configuration: Streamlined configuration process that makes setting up a breeze.
  • ๐Ÿ’ฏ 150+ Commands: Access over 150 versatile commands to enrich your server's experience.
  • ๐Ÿ“š Easy Hosting: Effortlessly host Majo.exe on your servers and keep it online 24/7.

๐Ÿ”— Invite

Go to this link and add the bot (this requires MANAGE_GUILD permission) to your server.

Or to make it easier, visit our website

๐Ÿ–ฅ๏ธ Hosting

We are hosting Majo.exe on our own servers. Majo.exe will be online 24/7. Invite Majo here!
However, if you want to host Majo.exe yourself, you can do it. Check out our tutorials to learn how to do it.

Important

This project is not for beginners. If you are not familiar with Node.js, Prisma, Discord.js or any other technology used in this project, you should not host Majo.exe yourself!

๐Ÿ“ Tutorials

โš™๏ธ System Requirements

Ensure your setup meets these prerequisites before setting up Majo.exe:

  • PostgreSQL 14x or higher
  • Node.js 18x or higher
  • (Any) Linux x64ยน
  • ~512MB of RAM (minimum)
  • ~3GB of hard drive space (minimum)

Note

  1. Debian based distros are recommended, bot can also run on Windows and MacOS but it's not recommended.

๐Ÿ”’ Global .env file

Variable Description Required (Bot) Required (Dashboard)
TOKEN Discord bot token โœ… Yes โœ… Yes
CLIENT_ID Discord client ID โœ… Yes โœ… Yes
CLIENT_SECRET Discord client secret โŒ No โœ… Yes
DATABASE_URL Main database connection string โœ… Yes โœ… Yes
DIRECT_URL Non-pooling database connection string โŒ No โŒ No
REDIS_URLยน Redis Cache connection string โŒ No โŒ No
SECRET Secret string (minimum 32 characters) โŒ No โœ… Yes
NEXTAUTH_URL NextAuth.js URL (e.g., http://localhost:3000) โŒ No โœ… Yes
NEXT_PUBLIC_URL Next.js public URL (e.g., http://localhost:3000) โŒ Noยฒ โœ… Yes
HOTJAR_ID Hotjar ID โŒ No โŒ No
DISCORD_SUPPORT_SERVER_ID Discord support server ID โŒ No โŒ Noยณ
TOPGG_API_KEY top.gg API key โŒ No โŒ Noโด

Note

  1. REDIS_URL enables caching. If you don't want to use Redis caching, leave this variable empty. Majo.exe will use Memory caching instead.
  2. NEXT_PUBLIC_URL is required only if you want to also include the dashboard.
  3. DISCORD_SUPPORT_SERVER_ID is required only if you want to automatically add users to your own Discord server when they log in to the dashboard. Please note that the bot needs Manage Server permission in the server!\
  4. TOPGG_API_KEY is required only if you want to automatically post server count to top.gg.

Warning

There is one global .env file for all projects. Do not create .env file in apps/bot, packages/database or apps/dashboard folders! This can cause problems and potential security issues.

๐Ÿ“ Contributors

๐Ÿ’ Sponsors

These wonderful people and services have helped develop Majo.exe, without them this project would not exist. Thanks goes to these wonderful people!

Sponsor Description
TrestHost Logo TrestHost TrestHost is a good and powerful hosting provider providing servers from the USA and Germany. Try us out today!

โ›” Hosting Agreement

By hosting the project, you agree to the following terms:

  1. ๐Ÿ“œ Attribution:

    • You are not allowed to claim authorship or affiliation with the Majo.exe team.
    • Proper credit must be given to the original author when hosting the project.
    • You are not allowed to use the Majo.exe name or logo in any way that implies affiliation with the Majo.exe team.
  2. ๐Ÿ’ป Hosting Rights:

    • The bot can be hosted on your server, provided the terms outlined here are respected.
  3. ๐Ÿšง Modifications:

    • The footer in the Dashboard, such as "Powered by Majo.exe," must not be modified or removed.
    • The /about command must not be modified or removed. This command contains information about the project and its authors.
    • The project's source code must not be modified in any way that would remove or alter the original attribution.
    • The license must be included with any public distribution of the project or its modified source code.
  4. ๐Ÿ“ฆ Distribution:

    • You may not distribute the bot or its modified versions without adhering to the terms mentioned in this agreement.
    • Any public release or distribution must include clear attribution to the original author and a link to the original repository or source.
  5. โš–๏ธ Compliance:

    • Failure to comply with these terms may result in a violation of the agreement.
    • Legal action may be taken if these terms are not respected.

โ‰๏ธ Issues

If you have any issues with the page please create new issue here. When creating new issue please provide as much information as possible. If you can, please provide logs from console.

We will review your pull request as soon as possible. We might suggest some changes or improvements.

๐Ÿ“ฅ Pull Requests

When submitting a pull request:

  • Clone the repository (git clone https://github.com/igorkowalczyk/majo.exe)
  • Create a branch off of master and give it a meaningful name (e.g. my-awesome-new-feature).
  • Open a pull request on GitHub and describe the feature or fix.

๐Ÿ“‹ License

This project is licensed under the MIT. See the LICENSE file for details

The cake is a lie ๐Ÿฐ

Github repository views

majo.exe's People

Contributors

0armaan025 avatar binary-blazer avatar dairyweb3638077 avatar ddiabla avatar dependabot[bot] avatar heavywolfpl avatar igorkowalczyk avatar imgbotapp avatar mridulsharma03 avatar phpxcoder avatar r-kjha avatar renovate[bot] avatar whxyu1337 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  avatar  avatar  avatar  avatar

majo.exe's Issues

Mysql connection issue | How to change the favicons

node:events:498
      throw er; // Unhandled 'error' event
      ^

Error: Connection lost: The server closed the connection.
    at Protocol.end (/home/runner/MAJOEXE-djs13/node_modules/mysql/lib/protocol/Protocol.js:112:13)
    at Socket.<anonymous> (/home/runner/MAJOEXE-djs13/node_modules/mysql/lib/Connection.js:94:28)
    at Socket.<anonymous> (/home/runner/MAJOEXE-djs13/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:532:35)
    at endReadableNT (node:internal/streams/readable:1346:12)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)
Emitted 'error' event on Connection instance at:
    at Connection._handleProtocolError (/home/runner/MAJOEXE-djs13/node_modules/mysql/lib/Connection.js:423:8)
    at Protocol.emit (node:events:520:28)
    at Protocol._delegateError (/home/runner/MAJOEXE-djs13/node_modules/mysql/lib/protocol/Protocol.js:398:10)
    at Protocol.end (/home/runner/MAJOEXE-djs13/node_modules/mysql/lib/protocol/Protocol.js:116:8)
    at Socket.<anonymous> (/home/runner/MAJOEXE-djs13/node_modules/mysql/lib/Connection.js:94:28)
    [... lines matching original stack trace ...]
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  fatal: true,
  code: 'PROTOCOL_CONNECTION_LOST'
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] majo:web: `node majo.js --api --dashboard`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] majo:web 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/2022-03-13T20_38_44_336Z-debug.log

MySQL error :< ive tried changing mysql hosts but it does that every 10 minutes

oh and i need help changing the logo/favicon of the dashboard ๐Ÿ’€

and theres a error with the anti crash and it crashes the bot :/

PostgreSQL to mongodb

What is the improvement or update you wish to see?

I want to use mongodb

Is there any context that might help us understand?

I want to use mongodb

TypeError: Cannot read properties of undefined (reading 'endsWith')

Hello, I tried to use your repository as an attempt to modify it just for fun, But, When I tried to run it, I ran into some errors.

TypeError: Cannot read properties of undefined (reading 'endsWith')
at Object.<anonymous> (/home/runner/majoexe/web/web.js:5:35)

and another error in the same process

/home/runner/majoexe/node_modules/mysql/lib/protocol/Parser.js:437
     throw err; // Rethrow non-MySQL errors`
             ^
Error: Error: ER_PARSE_ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'JSON NULL, `leaves` JSON NULL, `last_updated` DATE NOT NULL, PRIMARY KEY (`guild' at line 1
    at Query.<anonymous> (/home/runner/majoexe/utilities/mysql/database.js:37:22)
   at Query.<anonymous> (/home/runner/majoexe/node_modules/mysql/lib/Connection.js:526:10)
    at Query._callback (/home/runner/majoexe/node_modules/mysql/lib/Connection.js:488:16)
   at Query.Sequence.end (/home/runner/majoexe/node_modules/mysql/lib/protocol/sequences/Sequence.js:83:24)

Website Application Error

Describe the bug
image

Expected behavior
Open the website...

Desktop (please complete the following information):

  • OS: Arch Linux
  • Browser: Firefox

help my app forgot its username

/app/utilities/client/anti-crash.js:42
username: ${client.user.username} Error,
^

TypeError: Cannot read properties of null (reading 'username')
at process. (/app/utilities/client/anti-crash.js:42:29)
at process.emit (node:events:526:28)
at process._fatalException (node:internal/process/execution:164:13)

MongoDB

Since many user having error with mysql database,why don't u make a verson using mongoDB instead?,it's much easier

MajoExe Getting Just The Port Instead Of The Website Domain/IP

454b8bcd3d71803ffd183f5e99a62a0c
As You Can Tell From Looking At The Screenshot provided Its Not Loading The StyleSheet Properly or the functions
If you look in the Inspect Element On The Side You Will Notice the Issue With It Only grabbing The Port
I have put the DOMAIN=
in the .env file
The Bot Passes all checks in console

Mysql version issue

Hello i get this error when i try to start all with the replit npm start command:
Firefox_Screenshot_2022-02-02T18-50-27 365Z

PLS help
Note: 1 time i tryed it said i need to install node v16+ but node v16+ is installed
@IgorKowalczyk

user.banner is undefined

Environment

on "dashboard/[serverid]/user/[userid]" I don't have a user banner. You don't get a user banner when you query the "user" data.

Steps To Reproduce

add "console.log("user", user);" on the file ./apps/dashboard/app/dashboard/[server]/user/[id]/page.jsx
Run the Dashboard & bot

Software Version

latest

Expected Behavior

ehh.. the User banner? xD

Actual Behavior

nothing. No banner, no User color

Screenshots

No response

Severity

Major

Priority

Medium

Type

Functional

Reproducible

  • Yes
  • No

Additional Information

No response

MySQL - ER_CON_COUNT_ERROR: Too many connections

    at Handshake.Sequence._packetToError (/home/container/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Handshake.ErrorPacket (/home/container/node_modules/mysql/lib/protocol/sequences/Handshake.js:123:18)
    at Protocol._parsePacket (/home/container/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home/container/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home/container/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home/container/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home/container/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home/container/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:390:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home/container/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at Protocol.handshake (/home/container/node_modules/mysql/lib/protocol/Protocol.js:51:23)
    at PoolConnection.connect (/home/container/node_modules/mysql/lib/Connection.js:116:18)
    at Pool.getConnection (/home/container/node_modules/mysql/lib/Pool.js:48:16)
    at Pool.query (/home/container/node_modules/mysql/lib/Pool.js:202:8)
    at /home/container/utilities/giveaways/giveaways.js:8:21
    at new Promise (<anonymous>)
    at Giveaways.getAllGiveaways (/home/container/utilities/giveaways/giveaways.js:7:11)
    at Giveaways._init (/home/container/node_modules/discord-giveaways/src/Manager.js:665:39)
    at new GiveawaysManager (/home/container/node_modules/discord-giveaways/src/Manager.js:59:24) {
  code: 'ER_CON_COUNT_ERROR',
  errno: 1040,
  sqlMessage: 'Too many connections',
  sqlState: undefined,
  fatal: true
}
node:internal/process/promises:246
          triggerUncaughtException(err, true /* fromPromise */);
          ^
Error: ER_CON_COUNT_ERROR: Too many connections
    at Handshake.Sequence._packetToError (/home/container/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Handshake.ErrorPacket (/home/container/node_modules/mysql/lib/protocol/sequences/Handshake.js:123:18)
    at Protocol._parsePacket (/home/container/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home/container/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home/container/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home/container/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home/container/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home/container/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:390:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home/container/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at Protocol.handshake (/home/container/node_modules/mysql/lib/protocol/Protocol.js:51:23)
    at PoolConnection.connect (/home/container/node_modules/mysql/lib/Connection.js:116:18)
    at Pool.getConnection (/home/container/node_modules/mysql/lib/Pool.js:48:16)
    at Pool.query (/home/container/node_modules/mysql/lib/Pool.js:202:8)
    at /home/container/utilities/giveaways/giveaways.js:8:21
    at new Promise (<anonymous>)
    at Giveaways.getAllGiveaways (/home/container/utilities/giveaways/giveaways.js:7:11)
    at Giveaways._init (/home/container/node_modules/discord-giveaways/src/Manager.js:665:39)
    at new GiveawaysManager (/home/container/node_modules/discord-giveaways/src/Manager.js:59:24) {
  code: 'ER_CON_COUNT_ERROR',
  errno: 1040,
  sqlMessage: 'Too many connections',
  sqlState: undefined,
  fatal: true
}

This is the issue I am facing, I think the bot is not supposed to do this or did I missed something in the installation? Please let me know, Thanks.

How to run Dashboard, API and Bot at the same time?

How to run Dashboard, API and Bot at the same time?

npm run majo:bot <- Bot Run
npm run majo:dashboard <- Dashboard Run
npm run majo:api <- API Run
while true; do npm run majo:web; sleep 2; done <- Dashboard and API Run

But I don't know how to run all three in the same command (If I just add --bot it crashes)

I am geeting this error

Replit: Updating package configuration

--> npm install

[email protected] install /home/runner/majobot/node_modules/canvas
node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! install response status 403 Forbidden on https://github.com/Automattic/node-canvas/releases/download/v2.8.0/canvas-v2.8.0-node-v83-linux-glibc-x64.tar.gz
node-pre-gyp WARN Pre-built binaries not installable for [email protected] and [email protected] (node-v83 ABI, glibc) (falling back to source compile with node-gyp)
node-pre-gyp WARN Hit error response status 403 Forbidden on https://github.com/Automattic/node-canvas/releases/download/v2.8.0/canvas-v2.8.0-node-v83-linux-glibc-x64.tar.gz
/bin/sh: 1: pkg-config: not found
gyp: Call to 'pkg-config pixman-1 --libs' returned exit status 127 while in binding.gyp. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: gyp failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)
gyp ERR! stack at ChildProcess.emit (events.js:400:28)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
gyp ERR! System Linux 5.11.0-1018-gcp
gyp ERR! command "/home/runner/majobot/node_modules/node/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/home/runner/majobot/node_modules/canvas/build/Release/canvas.node" "--module_name=canvas" "--module_path=/home/runner/majobot/node_modules/canvas/build/Release" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v83"
gyp ERR! cwd /home/runner/majobot/node_modules/canvas
gyp ERR! node -v v14.17.6
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/home/runner/majobot/node_modules/node/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/home/runner/majobot/node_modules/canvas/build/Release/canvas.node --module_name=canvas --module_path=/home/runner/majobot/node_modules/canvas/build/Release --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83' (1)
node-pre-gyp ERR! stack at ChildProcess. (/home/runner/majobot/node_modules/canvas/node_modules/@mapbox/node-pre-gyp/lib/util/compile.js:89:23)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:400:28)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1055:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
node-pre-gyp ERR! System Linux 5.11.0-1018-gcp
node-pre-gyp ERR! command "/home/runner/majobot/node_modules/node/bin/node" "/home/runner/majobot/node_modules/canvas/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /home/runner/majobot/node_modules/canvas
node-pre-gyp ERR! node -v v14.17.6
node-pre-gyp ERR! node-pre-gyp -v v1.0.5
node-pre-gyp ERR! not ok
Failed to execute '/home/runner/majobot/node_modules/node/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/home/runner/majobot/node_modules/canvas/build/Release/canvas.node --module_name=canvas --module_path=/home/runner/majobot/node_modules/canvas/build/Release --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83' (1)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install 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-09-21T06_23_34_642Z-debug.log
exit status 1

Replit: Package operation failed.

Alot of bugs

Dashboard is not working and slash commands too

MySQL Error

database-scripts.js Has a annoying error.
When trying to run the bot NodeJS v16 and all the other apis working i get this error with mySQL

/home/runner/majobot-4/node_modules/mysql/lib/protocol/Parser.js:437
      throw err; // Rethrow non-MySQL errors
      ^

Error: Error: ER_PARSE_ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'JSON NOT NULL, PRIMARY KEY (`id`))' at line 1
    at Query.<anonymous> (/home/runner/majobot-4/utilities/database-scripts.js:13:17)
    at Query.<anonymous> (/home/runner/majobot-4/node_modules/mysql/lib/Connection.js:526:10)
    at Query._callback (/home/runner/majobot-4/node_modules/mysql/lib/Connection.js:488:16)
    at Query.Sequence.end (/home/runner/majobot-4/node_modules/mysql/lib/protocol/sequences/Sequence.js:83:24)
    at Query.ErrorPacket (/home/runner/majobot-4/node_modules/mysql/lib/protocol/sequences/Query.js:92:8)
    at Protocol._parsePacket (/home/runner/majobot-4/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home/runner/majobot-4/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home/runner/majobot-4/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home/runner/majobot-4/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home/runner/majobot-4/node_modules/mysql/lib/Connection.js:88:28)
exit status 1

I have switched mysql databases and i still get this error :/

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/codeql-analysis.yml
  • actions/checkout v3
  • github/codeql-action v2
  • github/codeql-action v2
.github/workflows/format-check.yml
  • actions/checkout v3
  • pnpm/action-setup v2
  • actions/setup-node v3
.github/workflows/format.yml
  • actions/checkout v3
  • pnpm/action-setup v2
  • actions/setup-node v3
  • stefanzweifel/git-auto-commit-action v4
.github/workflows/review.yml
  • actions/checkout v3
  • actions/dependency-review-action v3
npm
package.json
  • ajv ^8.11.2
  • turbo ^1.6.3
  • pnpm 7.18.0
packages/bot/package.json
  • chalk ^5.0.1
  • discord.js ^14.3.0
  • dotenv ^16.0.2
  • eslint ^8.23.1
packages/dashboard/package.json
  • @headlessui/react ^1.7.4
  • @headlessui/tailwindcss ^0.1.1
  • @heroicons/react ^2.0.13
  • @igorkowalczyk/is-browser ^1.0.1
  • @next-auth/mongodb-adapter ^1.1.1
  • @next/font 13.0.6
  • @vercel/og ^0.0.21
  • mongodb ^4.12.1
  • next 13.0.6
  • next-auth ^4.17.0
  • next-themes ^0.2.1
  • node-fetch ^3.3.0
  • nprogress ^0.2.0
  • preact 10.11.3
  • preact-compat ^3.19.0
  • react ^18.2.0
  • react-dom ^18.2.0
  • react-twemoji ^0.5.0
  • sharp ^0.31.2
  • @next/bundle-analyzer ^13.0.5
  • autoprefixer ^10.4.13
  • compression-webpack-plugin ^10.0.0
  • eslint ^8.28.0
  • eslint-config-next 13.0.6
  • globby ^13.1.2
  • lodash ^4.17.21
  • lodash-webpack-plugin ^0.11.6
  • mini-svg-data-uri ^1.4.4
  • postcss ^8.4.19
  • prettier ^2.8.0
  • prettier-plugin-tailwindcss ^0.2.0
  • tailwind-gradient-mask-image ^1.0.0
  • tailwindcss ^3.2.4
  • tailwindcss-text-fill ^0.2.0
  • terser-webpack-plugin ^5.3.6
  • webpack ^5.75.0

  • Check this box to trigger a request for Renovate to run again on this repository

mysql issue

hi is there anyway to make a mysql acc for free or switch the bot to mongodb ? cus i cant put a credit card while making a payment method and i wanna try to self host a bot for some time until i finish my to run my server and cus i found this bot amazing but sadly i cant make a mysql acc without a payment method\

How do i fix this?

Error: The module '/home/runner/TexturePack/node_modules/canvas/build/Release/canvas.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 83. This version of Node.js requires
NODE_MODULE_VERSION 72. Please try re-compiling or re-installing
the module (for instance, using npm rebuild or npm install).
at Object.Module._extensions..node (internal/modules/cjs/loader.js:1057:18)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object. (/home/runner/TexturePack/node_modules/canvas/lib/bindings.js:3:18)
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)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)Hint: hit control+c anytime to enter REPL.
[SQL] Connected to the MySQL server! Connection ID: 5587103
[SQL] Fetched table logs! Status: Success
[SQL] Fetched table welcome! Status: Success
[SQL] Fetched table reputation! Status: Success
[SQL] Fetched table leave! Status: Success
[SQL] Fetched table stats! Status: Success
/home/runner/TexturePack/node_modules/mysql/lib/protocol/Parser.js:437
throw err; // Rethrow non-MySQL errors
^

Error: Error: ER_PARSE_ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'JSON NOT NULL, PRIMARY KEY (id))' at line 1
at Query. (/home/runner/TexturePack/index.js:51:17)
at Query. (/home/runner/TexturePack/node_modules/mysql/lib/Connection.js:526:10)
at Query._callback (/home/runner/TexturePack/node_modules/mysql/lib/Connection.js:488:16)
at Query.Sequence.end (/home/runner/TexturePack/node_modules/mysql/lib/protocol/sequences/Sequence.js:83:24)
at Query.ErrorPacket (/home/runner/TexturePack/node_modules/mysql/lib/protocol/sequences/Query.js:92:8)
at Protocol._parsePacket (/home/runner/TexturePack/node_modules/mysql/lib/protocol/Protocol.js:291:23)
at Parser._parsePacket (/home/runner/TexturePack/node_modules/mysql/lib/protocol/Parser.js:433:10)
at Parser.write (/home/runner/TexturePack/node_modules/mysql/lib/protocol/Parser.js:43:10)
at Protocol.write (/home/runner/TexturePack/node_modules/mysql/lib/protocol/Protocol.js:38:16)
at Socket. (/home/runner/TexturePack/node_modules/mysql/lib/Connection.js:88:28)
repl process died unexpectedly: exit status 1

DiscordAPIError

DiscordAPIError: Missing Access
    at RequestHandler.execute (C:\Users\gamel\Dropbox (TaioSolve)\Documents\majo.exe\majo.exe\node_modules\discord.js\src\rest\RequestHandler.js:350:13)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async RequestHandler.push (C:\Users\gamel\Dropbox (TaioSolve)\Documents\majo.exe\majo.exe\node_modules\discord.js\src\rest\RequestHandler.js:51:14)
    at async ApplicationCommandPermissionsManager.fetch (C:\Users\gamel\Dropbox (TaioSolve)\Documents\majo.exe\majo.exe\node_modules\discord.js\src\managers\ApplicationCommandPermissionsManager.js:98:20)
    at async ApplicationCommandPermissionsManager.add (C:\Users\gamel\Dropbox (TaioSolve)\Documents\majo.exe\majo.exe\node_modules\discord.js\src\managers\ApplicationCommandPermissionsManager.js:231:18) {
  method: 'get',
  path: '/applications/944021600443990066/guilds/906569598621597817/commands/944260417109250159/permissions',
  code: 50001,
  httpStatus: 403,
  requestData: { json: undefined, files: [] }
}
DiscordAPIError: Missing Access
    at RequestHandler.execute (C:\Users\gamel\Dropbox (TaioSolve)\Documents\majo.exe\majo.exe\node_modules\discord.js\src\rest\RequestHandler.js:350:13)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async RequestHandler.push (C:\Users\gamel\Dropbox (TaioSolve)\Documents\majo.exe\majo.exe\node_modules\discord.js\src\rest\RequestHandler.js:51:14)
    at async ApplicationCommandPermissionsManager.fetch (C:\Users\gamel\Dropbox (TaioSolve)\Documents\majo.exe\majo.exe\node_modules\discord.js\src\managers\ApplicationCommandPermissionsManager.js:98:20)
    at async ApplicationCommandPermissionsManager.add (C:\Users\gamel\Dropbox (TaioSolve)\Documents\majo.exe\majo.exe\node_modules\discord.js\src\managers\ApplicationCommandPermissionsManager.js:231:18) {
  method: 'get',
  path: '/applications/944021600443990066/guilds/906569598621597817/commands/944260417109250160/permissions',
  code: 50001,
  httpStatus: 403,
  requestData: { json: undefined, files: [] }
}
> [API] Starting api...
> [API] Setting up api endpoints...
> [DASH] Starting dashboard...
> [DASH] Setting up dashboard main config...
> [DASH] Setting up dashboard endpoints...
> [DASH] All dashboard process done... Starting in web
> [DASH] Dashboard is up and running on url localhost:5001 !
> [API] API is up and running on url localhost:5001 !
> [API] Loaded endpoint localhost:5001/api/v1/fun/cat_fact
> [API] Loaded endpoint localhost:5001/api/v1/info/bot_info
Error: Connection lost: The server closed the connection.
    at Protocol.end (C:\Users\gamel\Dropbox (TaioSolve)\Documents\majo.exe\majo.exe\node_modules\mysql\lib\protocol\Protocol.js:112:13)
    at Socket.<anonymous> (C:\Users\gamel\Dropbox (TaioSolve)\Documents\majo.exe\majo.exe\node_modules\mysql\lib\Connection.js:94:28)
    at Socket.<anonymous> (C:\Users\gamel\Dropbox (TaioSolve)\Documents\majo.exe\majo.exe\node_modules\mysql\lib\Connection.js:526:10)
    at Socket.emit (node:events:402:35)
    at endReadableNT (node:internal/streams/readable:1343:12)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  fatal: true,
  code: 'PROTOCOL_CONNECTION_LOST'
}

Contact form webhook URL

Im running my bot in repl.it as I don't have a domain and it provides a free one. I keep entering my webhook into the secrets (.env) but keep getting this error

`

[email protected] dashboard /home/runner/majobot
node dashboard/run.js

[MAJO] Web dashboard client logged
[MAJO] Getting dashboard config file...
/home/runner/majobot/utilities/dashboard.js:6
if (!process.env.CONTACT_WEBHOOK) throw new Error("[HOST] You need to provide Discord Contact Webhook ID in .env - CONTACT_WEBHOOK_ID=YOUR_WEBHOOK_ID");
^

Error: [HOST] You need to provide Discord Contact Webhook ID in .env - CONTACT_WEBHOOK_ID=YOUR_WEBHOOK_ID
at Object. (/home/runner/majobot/utilities/dashboard.js:6:41)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object. (/home/runner/majobot/dashboard/dashboard.js:22:1)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] dashboard: node dashboard/run.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] dashboard 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-11-24T11_40_35_490Z-debug.log
exit status 1
๎บง
`

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.