kiip1 / application-bot Goto Github PK
View Code? Open in Web Editor NEWA Discord bot for applications.
License: Mozilla Public License 2.0
A Discord bot for applications.
License: Mozilla Public License 2.0
I have gotten the firbase stuff and put it in firebase.json but now i get
(node:25693) UnhandledPromiseRejectionWarning: Error: 9 FAILED_PRECONDITION: The Cloud Firestore API is not available for Datastore Mode projects.
at Object.callErrorFromStatus (/home/pi/application-bot/node_modules/@grpc/grpc-js/build/src/call.js:31:26)
at Object.onReceiveStatus (/home/pi/application-bot/node_modules/@grpc/grpc-js/build/src/client.js:327:49)
at Object.onReceiveStatus (/home/pi/application-bot/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:305:181)
at /home/pi/application-bot/node_modules/@grpc/grpc-js/build/src/call-stream.js:124:78
at processTicksAndRejections (internal/process/task_queues.js:75:11)
Caused by: Error
at Firestore.getAll (/home/pi/application-bot/node_modules/@google-cloud/firestore/build/src/index.js:755:23)
at DocumentReference.get (/home/pi/application-bot/node_modules/@google-cloud/firestore/build/src/reference.js:201:32)
at Client. (/home/pi/application-bot/commands.js:24:34)
at Client.emit (events.js:326:22)
at MessageCreateAction.handle (/home/pi/application-bot/node_modules/discord.js/src/client/actions/MessageCreate.js:31:14)
at Object.module.exports [as MESSAGE_CREATE] (/home/pi/application-bot/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (/home/pi/application-bot/node_modules/discord.js/src/client/websocket/WebSocketManager.js:384:31)
at WebSocketShard.onPacket (/home/pi/application-bot/node_modules/discord.js/src/client/websocket/WebSocketShard.js:444:22)
at WebSocketShard.onMessage (/home/pi/application-bot/node_modules/discord.js/src/client/websocket/WebSocketShard.js:301:10)
at WebSocket.onMessage (/home/pi/application-bot/node_modules/ws/lib/event-target.js:125:16)
(node:25693) 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 terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 4)
(node:8212) UnhandledPromiseRejectionWarning: Error: 5 NOT_FOUND: The project discord-bot-2047a does not exist or it does not contain an active Cloud Datastore or Cloud Firestore database. Please visit http://console.cloud.google.com to create a project or https://console.cloud.google.com/datastore/setup?project=discord-bot-2047a to add a Cloud Datastore or Cloud Firestore database. Note that Cloud Datastore or Cloud Firestore always have an associated App Engine app and this app must not be disabled. at Object.callErrorFromStatus (D:\Mr.King\Downloads\Compressed\application-bot-master\node_modules\@grpc\grpc-js\build\src\call.js:31:26) at Object.onReceiveStatus (D:\Mr.King\Downloads\Compressed\application-bot-master\node_modules\@grpc\grpc-js\build\src\client.js:327:49) at Object.onReceiveStatus (D:\Mr.King\Downloads\Compressed\application-bot-master\node_modules\@grpc\grpc-js\build\src\client-interceptors.js:305:181) at Http2CallStream.outputStatus (D:\Mr.King\Downloads\Compressed\application-bot-master\node_modules\@grpc\grpc-js\build\src\call-stream.js:117:74) at Http2CallStream.maybeOutputStatus (D:\Mr.King\Downloads\Compressed\application-bot-master\node_modules\@grpc\grpc-js\build\src\call-stream.js:156:22) at Http2CallStream.endCall (D:\Mr.King\Downloads\Compressed\application-bot-master\node_modules\@grpc\grpc-js\build\src\call-stream.js:142:18) at Http2CallStream.handleTrailers (D:\Mr.King\Downloads\Compressed\application-bot-master\node_modules\@grpc\grpc-js\build\src\call-stream.js:274:14) at ClientHttp2Stream.emit (events.js:209:13) at emit (internal/http2/core.js:277:8) at processTicksAndRejections (internal/process/task_queues.js:77:11) Caused by: Error at Firestore.getAll (D:\Mr.King\Downloads\Compressed\application-bot-master\node_modules\@google-cloud\firestore\build\src\index.js:755:23) at DocumentReference.get (D:\Mr.King\Downloads\Compressed\application-bot-master\node_modules\@google-cloud\firestore\build\src\reference.js:199:32) at Client.<anonymous> (D:\Mr.King\Downloads\Compressed\application-bot-master\commands.js:24:34) at Client.emit (events.js:214:15) at MessageCreateAction.handle (D:\Mr.King\Downloads\Compressed\application-bot-master\node_modules\discord.js\src\client\actions\MessageCreate.js:31:14) at Object.module.exports [as MESSAGE_CREATE] (D:\Mr.King\Downloads\Compressed\application-bot-master\node_modules\discord.js\src\client\websocket\handlers\MESSAGE_CREATE.js:4:32) at WebSocketManager.handlePacket (D:\Mr.King\Downloads\Compressed\application-bot-master\node_modules\discord.js\src\client\websocket\WebSocketManager.js:384:31) at WebSocketShard.onPacket (D:\Mr.King\Downloads\Compressed\application-bot-master\node_modules\discord.js\src\client\websocket\WebSocketShard.js:444:22) at WebSocketShard.onMessage (D:\Mr.King\Downloads\Compressed\application-bot-master\node_modules\discord.js\src\client\websocket\WebSocketShard.js:301:10) at WebSocket.onMessage (D:\Mr.King\Downloads\Compressed\application-bot-master\node_modules\ws\lib\event-target.js:125:16) (node:8212) 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(). (rejection id: 2) (node:8212) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
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.