Giter Club home page Giter Club logo

maseshi / shioru Goto Github PK

View Code? Open in Web Editor NEW
144.0 144.0 23.0 15.79 MB

๐Ÿงธ (Discord) Your personal assistant that will make your discord never lonely again.

Home Page: https://shiorus.web.app

License: MIT License

JavaScript 99.18% Batchfile 0.42% Shell 0.27% Dockerfile 0.13%
bot command-handlers discord discord-bot discord-js discord-js-bot discord-js-v14 firebase games interaction-handlers languages music nodejs slash-commands thailand

shioru's Issues

Can't setup Shioru bot

Screenshot 2022-12-11 114536

(node:16592) ExperimentalWarning: stream/web is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
Remote monitoring is now available at http://localhost:3000/
[2022-11-11.11:42:6] :: Unhandled Rejection
  Full Error:
    Error [DisallowedIntents]: Privileged intent provided is not enabled or whitelisted.
        at WebSocketManager.createShards (F:\Document\Discord\Shioru\node_modules\discord.js\src\client\websocket\WebSocketManager.js:250:15)
        at processTicksAndRejections (node:internal/process/task_queues:96:5)
        at async Client.login (F:\Document\Discord\Shioru\node_modules\discord.js\src\client\Client.js:232:7) {
      code: 'DisallowedIntents'
    }
    Promise {
      <rejected> Error [DisallowedIntents]: Privileged intent provided is not enabled or whitelisted.
          at WebSocketManager.createShards (F:\Document\Discord\Shioru\node_modules\discord.js\src\client\websocket\WebSocketManager.js:250:15)
          at processTicksAndRejections (node:internal/process/task_queues:96:5)
          at async Client.login (F:\Document\Discord\Shioru\node_modules\discord.js\src\client\Client.js:232:7) {
        code: 'DisallowedIntents'
      }
    }
  Reason: Error [DisallowedIntents]: Privileged intent provided is not enabled or whitelisted.
  Promise: [object Promise]
  Package: v3.1.0
  Discord.js: v14.6.0
  Node.js: v16.13.1

Cloud Firestore API | Firebase GrpcConnection RPC

Cloud Firestore API issue after enabling it
Error Code

   [2023-10-03T12:37:22.649Z]  @firebase/firestore: Firestore (10.4.0): GrpcConnection RPC 'Write' stream 0x61b847fe error. Code: 5 Message: 5 NOT_FOUND:

What Happen Bro

C:\Users\Administrator\Desktop\Shioru>node ./source/shard.js

โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•— v
โ–ˆโ–ˆโ•”โ•โ•โ•โ•โ•โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘ 3
โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘ .
โ•šโ•โ•โ•โ•โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘ 6
โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘โ•šโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘โ•šโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ• .
โ•šโ•โ•โ•โ•โ•โ•โ•โ•šโ•โ• โ•šโ•โ•โ•šโ•โ• โ•šโ•โ•โ•โ•โ•โ• โ•šโ•โ• โ•šโ•โ• โ•šโ•โ•โ•โ•โ•โ• 4

Copyright (C) 2020-2024 Chaiwat Suwannarat. All rights reserved.
Website: https://shiorus.web.app/, License: MIT & CC0-1.0
C:\Users\Administrator\Desktop\Shioru\node_modules\discord.js\src\util\Util.js:69
if (!token) throw new DiscordjsError(ErrorCodes.TokenMissing);
^

Error [TokenMissing]: Request to use token, but token was unavailable to the client.
at fetchRecommendedShardCount (C:\Users\Administrator\Desktop\Shioru\node_modules\discord.js\src\util\Util.js:69:21)
at ShardingManager.spawn (C:\Users\Administrator\Desktop\Shioru\node_modules\discord.js\src\sharding\ShardingManager.js:197:22)
at Object. (C:\Users\Administrator\Desktop\Shioru\source\shard.js:302:9)
at Module._compile (node:internal/modules/cjs/loader:1358:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
at Module.load (node:internal/modules/cjs/loader:1208:32)
at Module._load (node:internal/modules/cjs/loader:1024:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:174:12)
at node:internal/main/run_main_module:28:49 {
code: 'TokenMissing'
}

Node.js v20.15.0
Capture
Capture1

I got this error with the nodejs module

I set up and ran the bot
But after running the bot it gave me this error

I dont know this is the host's problem or the bot problem so ill put it here :D

Thanks in advance
Screenshot_2023_0818_225800

wont worl

[email protected] start
node ./source/shard.js

node:internal/modules/cjs/loader:1148
throw err;
^

Error: Cannot find module 'pino'
Require stack:

  • C:\Users\sclrx\Documents\MY FOLDER\Shioru\source\utils\consoleUtils.js
  • C:\Users\sclrx\Documents\MY FOLDER\Shioru\source\shard.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15)
    at Module._load (node:internal/modules/cjs/loader:986:27)
    at Module.require (node:internal/modules/cjs/loader:1233:19)
    at require (node:internal/modules/helpers:179:18)
    at Object. (C:\Users\sclrx\Documents\MY FOLDER\Shioru\source\utils\consoleUtils.js:2:14)
    at Module._compile (node:internal/modules/cjs/loader:1358:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
    at Module.load (node:internal/modules/cjs/loader:1208:32)
    at Module._load (node:internal/modules/cjs/loader:1024:12)
    at Module.require (node:internal/modules/cjs/loader:1233:19) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    'C:\Users\sclrx\Documents\MY FOLDER\Shioru\source\utils\consoleUtils.js',
    'C:\Users\sclrx\Documents\MY FOLDER\Shioru\source\shard.js'
    ]
    }

Bot gives this error after running

[2022-10-29.13:15:45] :: Uncaught Exception Monitor
Full Error:
TypeError: Cannot read properties of undefined (reading '1044723283729330176')
at settingsData (D:\vobobeta\shioru\source\utils\databaseUtils.js:267:43)
at module.exports (D:\vobobeta\shioru\source\events\message\messageCreate.js:23:9)
at Client.emit (node:events:394:28)
at MessageCreateAction.handle (D:\vobobeta\shioru\node_modules\discord.js\src\client\actions\MessageCreate.js:28:14)
at Object.module.exports [as MESSAGE_CREATE] (D:\vobobeta\shioru\node_modules\discord.js\src\client\websocket\handlers\MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (D:\vobobeta\shioru\node_modules\discord.js\src\client\websocket\WebSocketManager.js:352:31)
at WebSocketShard.onPacket (D:\vobobeta\shioru\node_modules\discord.js\src\client\websocket\WebSocketShard.js:480:22)
at WebSocketShard.onMessage (D:\vobobeta\shioru\node_modules\discord.js\src\client\websocket\WebSocketShard.js:320:10)
at callListener (D:\vobobeta\shioru\node_modules\ws\lib\event-target.js:290:14)
at WebSocket.onMessage (D:\vobobeta\shioru\node_modules\ws\lib\event-target.js:209:9)
uncaughtException
Error: TypeError: Cannot read properties of undefined (reading '1044723283729330176')
Origin: uncaughtException
Package: v3.1.0
Discord.js: v14.6.0
Node.js: v16.9.0

Webhook Feature

Can you add a webhook feature?

Some lines in .env like:

SERVER_LOGS_WEBHOOK - send the webhook when the bot joins a server

ISSUE_WEBHOOK - people will use /issue command with the bug and attachment (if possible) and the issue will send to the webhook

And some more webhooks like in this repo

Add Prettier to Project

Prettier is a code formatter that can help the project improving the DX and maintaining a code standard. It is a good option for open source projects and is very extensible allowing the use of plugins.

I found of bug.

C:\Users\Administrator\Desktop\Shioru>node .
[15:18:32.051] INFO (shioru/8124): Checking configuration variables...
[15:18:32.053] WARN (shioru/8124): CONF: The openai.apiKey was not found in the environment.
[15:18:32.053] WARN (shioru/8124): CONF: The open_weather_token was not found in the environment.
[15:18:32.053] WARN (shioru/8124): CONF: The translation.baseURL was not found in the environment.
[15:18:32.054] ERROR (shioru/8124): An error was encountered while verifying the configuration.
err: {
"type": "Error",
"message": "CONF: API_KEY It needs to be set up in the environment.",
"stack":
Error: CONF: API_KEY It needs to be set up in the environment.
at Object. (C:\Users\Administrator\Desktop\Shioru\source\main.js:100:11)
at Module._compile (node:internal/modules/cjs/loader:1358:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
at Module.load (node:internal/modules/cjs/loader:1208:32)
at Module._load (node:internal/modules/cjs/loader:1024:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:174:12)
at node:internal/main/run_main_module:28:49
}
[15:18:32.056] INFO (shioru/8124): Setting up the main system...
[15:18:32.246] INFO (shioru/8124): Loading language modules...
[15:18:32.468] INFO (shioru/8124): Adding data and handlers to the main system...
[15:18:32.477] INFO (shioru/8124): Loading all commands and events...
[15:18:32.481] INFO (shioru/8124): Verifying and loading all commands...
[15:18:33.502] INFO (shioru/8124): Verifying and loading all contexts...
[15:18:33.510] INFO (shioru/8124): Verifying and loading all events...
[15:18:33.635] INFO (shioru/8124): Connecting to the backend and logging in...
[15:18:33.643] FATAL (shioru/8124): Unhandled Rejection
usage: {
"cpu": "4.38%",
"memory": "51.47%/73.81%"
}
version: {
"package": "3.6.4",
"discord": "14.15.3",
"node": "v20.15.0"
}
[15:18:33.749] FATAL (shioru/8124): An invalid token was provided.
err: {
"type": "DiscordjsError",
"message": "An invalid token was provided.",
"stack":
Error [TokenInvalid]: An invalid token was provided.
at Client.login (C:\Users\Administrator\Desktop\Shioru\node_modules\discord.js\src\client\Client.js:216:52)
at Object. (C:\Users\Administrator\Desktop\Shioru\source\main.js:255:8)
at Module._compile (node:internal/modules/cjs/loader:1358:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
at Module.load (node:internal/modules/cjs/loader:1208:32)
at Module._load (node:internal/modules/cjs/loader:1024:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:174:12)
at node:internal/main/run_main_module:28:49
"code": "TokenInvalid"
}
[15:18:33.756] FATAL (shioru/8124):

What is %s?

I don't understand what is %s in your project as I am new to this field and I am seeing it a lot in your code. As I searched through the files I am not ables see it as a variable or anything. If you can please tell me how does it work or anything.

Hey i got an error with the distube module

/home/container/node_modules/distube/dist/index.js:2712
throw new DisTubeError("INVALID_KEY", sourceName, invalidKey);
^
DisTubeError [INVALID_KEY]: 'youtubeIdentityToken' does not need to be provided in DisTubeOptions
at checkInvalidKey (/home/container/node_modules/distube/dist/index.js:2712:11)
at new Options (/home/container/node_modules/distube/dist/index.js:1587:5)
at new DisTube (/home/container/node_modules/distube/dist/index.js:2790:20)
at Object. (/home/container/source/main.js:158:16)
at Module._compile (node:internal/modules/cjs/loader:1275:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1329:10)
at Module.load (node:internal/modules/cjs/loader:1133:32)
at Module._load (node:internal/modules/cjs/loader:972:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)
at node:internal/main/run_main_module:23:47 {
errorCode: 'INVALID_KEY'

image

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.