Code Monkey home page Code Monkey logo

discord-bot-list's Introduction

This is no longer maintained

Here's a fork that is: https://github.com/TheHellTower/Discord-Bot-List


About

An open-sourced discord bot list. There's a setup guide in the wiki if you're interested. Put all the information in config.json. The development branch may have newer additions/features, but is also potentially more buggy or even insecure. Use at your own risk. If you have any issues, check the FAQs first please.

Screenshots

Front Page Dark Theme Bot Page

Features

  • HTML descriptions
  • Minimalistic website (with dark theme)
  • Bot resubmit option
  • Bot widget
  • Server count API

To Do

  • Mark bot as NSFW when submitting

Stargazers

Stargazers repo roster for @Sank6/Discord-Bot-List

Forkers

Forkers repo roster for @Sank6/Discord-Bot-List

discord-bot-list's People

Contributors

awish-senpai avatar bobby365 avatar clearlyelevated avatar dev-jacob-prog avatar hideakiatsuyo avatar idk-pixel avatar misly16 avatar sank6 avatar sayantan300 avatar shootdot avatar techdude1610dlstaff avatar v1devv avatar zaid-maker 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

discord-bot-list's Issues

What's the token in me?token=

(domain.com/me?token='token' ) - is that the discord user account token, and if it is, is that against Discord Terms of Service? Or how I can disable it?

btw, is that token needed?

MongoDB doesn't want to connect.

(node:26926) UnhandledPromiseRejectionWarning: MongoParseError: Invalid connection string
at parseConnectionString (/var/www/discord.pizza/public_html/beta/node_modules/mongodb/lib/core/uri_parser.js:547:21)
at connect (/var/www/discord.pizza/public_html/beta/node_modules/mongodb/lib/operations/connect.js:272:3)
at cb (/var/www/discord.pizza/public_html/beta/node_modules/mongodb/lib/mongo_client.js:218:5)
at maybePromise (/var/www/discord.pizza/public_html/beta/node_modules/mongodb/lib/utils.js:719:3)
at MongoClient.connect (/var/www/discord.pizza/public_html/beta/node_modules/mongodb/lib/mongo_client.js:214:10)
at Promise (/var/www/discord.pizza/public_html/beta/node_modules/mongoose/lib/connection.js:709:12)
at new Promise ()
at NativeConnection.Connection.openUri (/var/www/discord.pizza/public_html/beta/node_modules/mongoose/lib/connection.js:706:19)
at Mongoose.connect (/var/www/discord.pizza/public_html/beta/node_modules/mongoose/lib/index.js:333:15)
at /var/www/discord.pizza/public_html/beta/src/index.js:12:20
at Object. (/var/www/discord.pizza/public_html/beta/src/index.js:22:3)
at Module._compile (internal/modules/cjs/loader.js:702:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
at Module.load (internal/modules/cjs/loader.js:612:32)
at tryModuleLoad (internal/modules/cjs/loader.js:551:12)
at Function.Module._load (internal/modules/cjs/loader.js:543:3)

New Issue

TypeError: Class extends value undefined is not a constructor or null

Please Help

ERROR

As i keep trying to log in its send me back to the authoraztion link and won't let me login any solutions to fix this promblem because i have no errors in logs!

When i add a bot

It is not put in the db of mongodb so that when I restart the project on glitch the list of bots is deleted.

When he is unverified(he isn't put in the mongodb)

When i type (verify <@bot> the bot respond but):

[2019-12-25 09:47:56] Uncaught Promise Error: 

[2019-12-25 09:47:56] DiscordAPIError: Invalid Form Body

[2019-12-25 09:47:56] roles[2]: The set already contains this value

[2019-12-25 09:47:56]     at RequestHandler.execute (/rbd/pnpm-volume/579667c4-d3e2-41fb-8ff2-f4d101bf37ba/node_modules/.github.com/discordjs/discord.js/5519d6fbaa61abccc27b742f97ad725bf4259265/node_modules/discord.js/src/rest/RequestHandler.js:170:25)

[2019-12-25 09:47:56]     at process._tickCallback (internal/process/next_tick.js:68:7)

The list with bots disappears

Every time I turn the project off and back on, all the bots that were added in the list are removed, why is this happening?

editing

Whenever you edit a bot it displays the following error.
image

When i want to add a bot

        CLIENT.guilds.get(process.env.GUILD_ID).members.fetch().then(ans => {

TypeError: Cannot read property 'members' of undefined (server.js:419:52)
(GUILD_ID is defined)

and

let ans = JSON.parse(CLIENT.settings.get('bots'))
TypeError: Cannot read property 'get' of null (server.js:107:42)

Cannot find module '/app/src/Utils/discordapi'

show me error :-

[2020-01-25 02:15:39] Uncaught Promise Error: 
[2020-01-25 02:15:39] Error: Cannot find module '/app/src/Utils/discordapi'
[2020-01-25 02:15:39] Require stack:
[2020-01-25 02:15:39] - /app/src/Routes/api/bots/submit.js
[2020-01-25 02:15:39] - /app/src/Routes/api/bots.js
[2020-01-25 02:15:39] - /app/src/Routes/api/index.js
[2020-01-25 02:15:39] - /app/src/Routes/index.js
[2020-01-25 02:15:39] - /app/src/Structures/App.js
[2020-01-25 02:15:39] - /app/src/index.js
[2020-01-25 02:15:39]     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:610:15)
[2020-01-25 02:15:39]     at Function.Module._resolveFilename (/rbd/pnpm-volume/1ee719b1-fad5-4465-87ac-a51598473aef/node_modules/.registry.npmjs.org/module-alias/2.2.2/node_modules/module-alias/index.js:49:29)
[2020-01-25 02:15:39]     at Function.Module._load (internal/modules/cjs/loader.js:526:27)
[2020-01-25 02:15:39]     at Module.require (internal/modules/cjs/loader.js:666:19)
[2020-01-25 02:15:39]     at require (internal/modules/cjs/helpers.js:16:16)
[2020-01-25 02:15:39]     at Object.<anonymous> (/app/src/Routes/api/bots/submit.js:4:29)
[2020-01-25 02:15:39]     at Module._compile (internal/modules/cjs/loader.js:759:30)
[2020-01-25 02:15:39]     at Object.Module._extensions..js (internal/modules/cjs/loader.js:770:10)
[2020-01-25 02:15:39]     at Module.load (internal/modules/cjs/loader.js:628:32)
[2020-01-25 02:15:39]     at Function.Module._load (internal/modules/cjs/loader.js:555:12)```

Please help

Please tell me where can i find the old version cause many people says that old version has no bug

Create it to be used with MongoDB Locally Hosted DB

I think if you make it to be used using something like MongoDB Atlas or MongoDB locally I think it would as Hosting with MLab costs money. So if you could possibly configure some things to allow it to be hosted using a local MongoDB. Thx

Refresh token

Screenshot_2020-04-08-06-11-47-845
Why show me all time error
I am login and to go me and view bot then click /me so not working so only error

error guildmemberadd.js error

didn't change the scrip, restarted my pc and now I get this error

C:\Users\Administrator.pm2\pm2.log last 15 lines:
PM2 | 2020-01-26T04:18:33: PM2 log: App [index:0] starting in -fork mode-

PM2 | 2020-01-26T04:18:33: PM2 log: App [index:0] online
PM2 | 2020-01-26T04:19:50: PM2 log: Stopping app:index id:0
PM2 | 2020-01-26T04:19:50: PM2 log: App [index:0] exited with code [1] vi
a signal [SIGINT]
PM2 | 2020-01-26T04:19:50: PM2 log: pid=3348 msg=process killed
PM2 | 2020-01-26T04:19:50: PM2 log: App [index:0] starting in -fork mode-

PM2 | 2020-01-26T04:19:50: PM2 log: App [index:0] online
PM2 | 2020-01-26T04:22:50: PM2 log: Stopping app:index id:0
PM2 | 2020-01-26T04:22:50: PM2 log: App [index:0] exited with code [1] vi
a signal [SIGINT]
PM2 | 2020-01-26T04:22:51: PM2 log: pid=3440 msg=process killed
PM2 | 2020-01-26T04:22:51: PM2 log: App [index:0] starting in -fork mode-

PM2 | 2020-01-26T04:22:51: PM2 log: App [index:0] online
PM2 | 2020-01-26T04:23:15: PM2 log: Stopping app:index id:0
PM2 | 2020-01-26T04:23:15: PM2 log: App [index:0] exited with code [1] vi
a signal [SIGINT]
PM2 | 2020-01-26T04:23:15: PM2 log: pid=3160 msg=process killed

C:\Users\Administrator.pm2\logs\index-error.log last 15 lines:
0|index | [2020-01-25 20:56:30] at process.emit (events.js:215:7)
0|index | [2020-01-25 20:56:30] at processPromiseRejections (internal/pro
cess/promises.js:201:33)
0|index | [2020-01-25 20:56:30] at processTicksAndRejections (internal/pr
ocess/task_queues.js:94:32)
0|index | [2020-01-26 03:56:07] Failed to load file 'C:\Users\Administrator\D
esktop\1\luna\src\Bot\events\guildMemberAdd.js'. Error:
0|index | [2020-01-26 03:56:07] TypeError: The exported structure is not a cl
ass.
0|index | [2020-01-26 03:56:07] at Map.load (C:\Users\Administrator\Deskt
op\1\luna\node_modules\klasa\src\lib\structures\base\Store.js:107:31)
0|index | [2020-01-26 03:56:07] at Map.load (C:\Users\Administrator\Deskt
op\1\luna\node_modules\klasa\src\lib\structures\EventStore.js:36:16)
0|index | [2020-01-26 03:56:07] at C:\Users\Administrator\Desktop\1\luna
node_modules\klasa\src\lib\structures\base\Store.js:193:58
0|index | [2020-01-26 03:56:07] at Array.map ()
0|index | [2020-01-26 03:56:07] at Function.walk (C:\Users\Administrator
Desktop\1\luna\node_modules\klasa\src\lib\structures\base\Store.js:193:40)
0|index | [2020-01-26 03:56:07] at async Map.loadAll (C:\Users\Administra
tor\Desktop\1\luna\node_modules\klasa\src\lib\structures\base\Store.js:128:3)
0|index | [2020-01-26 03:56:07] at async C:\Users\Administrator\Desktop\1
\luna\node_modules\klasa\src\lib\Client.js:412:82
0|index | [2020-01-26 03:56:07] at async Promise.all (index 6)
0|index | [2020-01-26 03:56:07] at async KlasaClient.login (C:\Users\Admi
nistrator\Desktop\1\luna\node_modules\klasa\src\lib\Client.js:412:18)
0|index | [2020-01-26 03:56:07] at async Object.module.exports.init (C:\U
sers\Administrator\Desktop\1\luna\src\Bot\index.js:33:5)

C:\Users\Administrator.pm2\logs\index-out.log last 15 lines:

edit function

anyone can edit your bot.
could this be secured that the bot owner can only edit it?

and the Bot widget doesn't work either, he says not found.

Error

internal/modules/cjs/loader.js:336
throw err;
^

Error: Cannot find module 'C:\Users\root\Desktop\botlist\node_modules\klasa\dist\src\index.js'. Please verify that the package.json has a valid "main" entry
at tryPackage (internal/modules/cjs/loader.js:328:19)
at Function.Module._findPath (internal/modules/cjs/loader.js:689:18)
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:1016:27)
at Function.Module._resolveFilename (C:\Users\root\Desktop\botlist\node_modules\module-alias\index.js:49:29)
at Function.Module._load (internal/modules/cjs/loader.js:898:27)
at Module.require (internal/modules/cjs/loader.js:1089:19)
at require (internal/modules/cjs/helpers.js:73:18)
at Object. (C:\Users\root\Desktop\botlist\src\bot\index.js:2:28)
at Module._compile (internal/modules/cjs/loader.js:1200:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1220:10)
at Module.load (internal/modules/cjs/loader.js:1049:32)
at Function.Module._load (internal/modules/cjs/loader.js:937:14)
at Module.require (internal/modules/cjs/loader.js:1089:19)
at require (internal/modules/cjs/helpers.js:73:18)
at Object. (C:\Users\root\Desktop\botlist\src\index.js:6:13)
at Module._compile (internal/modules/cjs/loader.js:1200:30) {
code: 'MODULE_NOT_FOUND',
path: 'C:\Users\root\Desktop\botlist\node_modules\klasa\package.json',
requestPath: 'klasa'
}

Another db

Hello , Can you do same thing with sqlite ? please

error when starting up

When I start everything I get this error:
[email protected] start C:\Users\Marijn\Desktop\Discord-Bot-Listing

node src/index.js

C:\Users\Marijn\Desktop\Discord-Bot-Listing\node_modules\klasa\src\lib\extensions\KlasaUserStore.js:7
class KlasaUserStore extends UserStore {
^

TypeError: Class extends value undefined is not a constructor or null
at Object. (C:\Users\Marijn\Desktop\Discord-Bot-Listing\node_modules\klasa\src\lib\extensions\KlasaUserStore.js:7:30)
at Module._compile (internal/modules/cjs/loader.js:776:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
at Module.load (internal/modules/cjs/loader.js:643:32)
at Function.Module._load (internal/modules/cjs/loader.js:556:12)
at Module.require (internal/modules/cjs/loader.js:683:19)
at require (internal/modules/cjs/helpers.js:16:16)
at Object. (C:\Users\Marijn\Desktop\Discord-Bot-Listing\node_modules\klasa\src\lib\Client.js:25:24)
at Module._compile (internal/modules/cjs/loader.js:776:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: node src/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! C:\Users\Marijn\AppData\Roaming\npm-cache_logs\2020-04-12T07_00_22_644Z-debug.log

This is because klasa does not yet support discord v 12

New bugs in command

I found a bug in the bots commands and list

And the "queue" command doesn't work yet`` there is a bot on check and in the list there is no

Dm Submit

Is there a way to make bot dm people who submit the bot?

memberCheck Error

When submitting a bot the code provided in the source:
let [user, tk] = await getUser(req.cookies["refresh_token"]); res.cookie("refresh_token", tk, {httpOnly: true}); let memberCheck = req.app.get('client').guilds.get(GUILD_ID).member(user.id);

is giving this error upon trying to add a bot when clicking sumbit

[2020-05-06 09:57:20] [EVENT] /rbd/pnpm-volume/002f7f68-9b40-4a3d-8777-2669be5e1f57/node_modules/.github.com/dirigeants/klasa/7fbd351c1276a171fdc854bc99f05b5ef89eb32b/node_modules/klasa/src/events/unhandledRejection.js [2020-05-06 09:57:20] Error [ERR_UNHANDLED_ERROR]: Unhandled error. ('Uncaught Promise Error: \nTypeError: req.app.get(...).guilds.get is ' + [2020-05-06 09:57:20] 'not a function\n at /app/src/routes/api/bots/submit.js:28:52\n ' + [2020-05-06 09:57:20] 'at processTicksAndRejections (internal/process/task_queues.js:88:5)') [2020-05-06 09:57:20] at KlasaClient.emit (events.js:185:17) [2020-05-06 09:57:20] at module.exports.run (/rbd/pnpm-volume/002f7f68-9b40-4a3d-8777-2669be5e1f57/node_modules/.github.com/dirigeants/klasa/7fbd351c1276a171fdc854bc99f05b5ef89eb32b/node_modules/klasa/src/events/unhandledRejection.js:12:15) [2020-05-06 09:57:20] at module.exports._run (/rbd/pnpm-volume/002f7f68-9b40-4a3d-8777-2669be5e1f57/node_modules/.github.com/dirigeants/klasa/7fbd351c1276a171fdc854bc99f05b5ef89eb32b/node_modules/klasa/src/lib/structures/Event.js:102:15) [2020-05-06 09:57:20] at process.emit (events.js:196:13) [2020-05-06 09:57:20] at processPromiseRejections (internal/process/promises.js:165:18) [2020-05-06 09:57:20] at processTicksAndRejections (internal/process/task_queues.js:89:32)

how

How to edit bots ?

error when add bots

[2020-04-26 12:16:14] Error [ERR_UNHANDLED_ERROR]: Unhandled error. ('Uncaught Promise Error: \nMongoError: E11000 duplicate key error ' +
[2020-04-26 12:16:14]   'collection: test.bots index: botid_1 dup key: { botid: ' +
[2020-04-26 12:16:14]   '"694247204981833839" }\n    at Function.create ' +
[2020-04-26 12:16:14]   '(/rbd/pnpm-volume/bfd7ec82-e0c9-4500-8d77-e35755dfe7b4/node_modules/.registry.npmjs.org/mongodb/3.5.6/node_modules/mongodb/lib/core/error.js:43:12)\n' +
[2020-04-26 12:16:14]   '    at toError ' +
[2020-04-26 12:16:14]   '(/rbd/pnpm-volume/bfd7ec82-e0c9-4500-8d77-e35755dfe7b4/node_modules/.registry.npmjs.org/mongodb/3.5.6/node_modules/mongodb/lib/utils.js:149:22)\n' +
[2020-04-26 12:16:14]   '    at ' +
[2020-04-26 12:16:14]   '/rbd/pnpm-volume/bfd7ec82-e0c9-4500-8d77-e35755dfe7b4/node_modules/.registry.npmjs.org/mongodb/3.5.6/node_modules/mongodb/lib/operations/common_functions.js:265:39\n' +
[2020-04-26 12:16:14]   '    at handler ' +
[2020-04-26 12:16:14]   '(/rbd/pnpm-volume/bfd7ec82-e0c9-4500-8d77-e35755dfe7b4/node_modules/.registry.npmjs.org/mongodb/3.5.6/node_modules/mongodb/lib/core/sdam/topology.js:913:24)\n' +
[2020-04-26 12:16:14]   '    at ' +
[2020-04-26 12:16:14]   '/rbd/pnpm-volume/bfd7ec82-e0c9-4500-8d77-e35755dfe7b4/node_modules/.registry.npmjs.org/mongodb/3.5.6/node_modules/mongodb/lib/cmap/connection_pool.js:352:13\n' +
[2020-04-26 12:16:14]   '    at handleOperationResult ' +
[2020-04-26 12:16:14]   '(/rbd/pnpm-volume/bfd7ec82-e0c9-4500-8d77-e35755dfe7b4/node_modules/.registry.npmjs.org/mongodb/3.5.6/node_modules/mongodb/lib/core/sdam/server.js:489:5)\n' +
[2020-04-26 12:16:14]   '    at MessageStream.messageHandler ' +
[2020-04-26 12:16:14]   '(/rbd/pnpm-volume/bfd7ec82-e0c9-4500-8d77-e35755dfe7b4/node_modules/.registry.npmjs.org/mongodb/3.5.6/node_modules/mongodb/lib/cmap/connection.js:270:5)\n' +
[2020-04-26 12:16:14]   '    at MessageStream.emit (events.js:196:13)\n    at processIncomingData ' +
[2020-04-26 12:16:14]   '(/rbd/pnpm-volume/bfd7ec82-e0c9-4500-8d77-e35755dfe7b4/node_modules/.registry.npmjs.org/mongodb/3.5.6/node_modules/mongodb/lib/cmap/message_stream.js:144:12)\n' +
[2020-04-26 12:16:14]   '    at MessageStream._write ' +
[2020-04-26 12:16:14]   '(/rbd/pnpm-volume/bfd7ec82-e0c9-4500-8d77-e35755dfe7b4/node_modules/.registry.npmjs.org/mongodb/3.5.6/node_modules/mongodb/lib/cmap/message_stream.js:42:5)\n' +
[2020-04-26 12:16:14]   '    at doWrite (_stream_writable.js:417:12)\n    at writeOrBuffer ' +
[2020-04-26 12:16:14]   '(_stream_writable.js:401:5)\n    at MessageStream.Writable.write ' +
[2020-04-26 12:16:14]   '(_stream_writable.js:301:11)\n    at TLSSocket.ondata ' +
[2020-04-26 12:16:14]   '(_stream_readable.js:696:22)\n    at TLSSocket.emit (events.js:196:13)\n    ' +
[2020-04-26 12:16:14]   'at addChunk (_stream_readable.js:290:12)')
[2020-04-26 12:16:14]     at KlasaClient.emit (events.js:185:17)
[2020-04-26 12:16:14]     at module.exports.run (/rbd/pnpm-volume/bfd7ec82-e0c9-4500-8d77-e35755dfe7b4/node_modules/.github.com/dirigeants/klasa/7fbd351c1276a171fdc854bc99f05b5ef89eb32b/node_modules/klasa/src/events/unhandledRejection.js:12:15)
[2020-04-26 12:16:14]     at module.exports._run (/rbd/pnpm-volume/bfd7ec82-e0c9-4500-8d77-e35755dfe7b4/node_modules/.github.com/dirigeants/klasa/7fbd351c1276a171fdc854bc99f05b5ef89eb32b/node_modules/klasa/src/lib/structures/Event.js:102:15)
[2020-04-26 12:16:14]     at process.emit (events.js:196:13)
[2020-04-26 12:16:14]     at processPromiseRejections (internal/process/promises.js:165:18)
[2020-04-26 12:16:14]     at processTicksAndRejections (internal/process/task_queues.js:89:32)
[2020-04-26 12:16:33] [EVENT] /rbd/pnpm-volume/bfd7ec82-e0c9-4500-8d77-e35755dfe7b4/node_modules/.github.com/dirigeants/klasa/7fbd351c1276a171fdc854bc99f05b5ef89eb32b/node_modules/klasa/src/events/unhandledRejection.js
[2020-04-26 12:16:33] Error [ERR_UNHANDLED_ERROR]: Unhandled error. ('Uncaught Promise Error: \nMongoError: E11000 duplicate key error ' +
[2020-04-26 12:16:33]   'collection: test.bots index: botid_1 dup key: { botid: ' +
[2020-04-26 12:16:33]   '"694247204981833839" }\n    at Function.create ' +
[2020-04-26 12:16:33]   '(/rbd/pnpm-volume/bfd7ec82-e0c9-4500-8d77-e35755dfe7b4/node_modules/.registry.npmjs.org/mongodb/3.5.6/node_modules/mongodb/lib/core/error.js:43:12)\n' +
[2020-04-26 12:16:33]   '    at toError ' +
[2020-04-26 12:16:33]   '(/rbd/pnpm-volume/bfd7ec82-e0c9-4500-8d77-e35755dfe7b4/node_modules/.registry.npmjs.org/mongodb/3.5.6/node_modules/mongodb/lib/utils.js:149:22)\n' +
[2020-04-26 12:16:33]   '    at ' +
[2020-04-26 12:16:33]   '/rbd/pnpm-volume/bfd7ec82-e0c9-4500-8d77-e35755dfe7b4/node_modules/.registry.npmjs.org/mongodb/3.5.6/node_modules/mongodb/lib/operations/common_functions.js:265:39\n' +
[2020-04-26 12:16:33]   '    at handler ' +
[2020-04-26 12:16:33]   '(/rbd/pnpm-volume/bfd7ec82-e0c9-4500-8d77-e35755dfe7b4/node_modules/.registry.npmjs.org/mongodb/3.5.6/node_modules/mongodb/lib/core/sdam/topology.js:913:24)\n' +
[2020-04-26 12:16:33]   '    at ' +
[2020-04-26 12:16:33]   '/rbd/pnpm-volume/bfd7ec82-e0c9-4500-8d77-e35755dfe7b4/node_modules/.registry.npmjs.org/mongodb/3.5.6/node_modules/mongodb/lib/cmap/connection_pool.js:352:13\n' +
[2020-04-26 12:16:33]   '    at handleOperationResult ' +
[2020-04-26 12:16:33]   '(/rbd/pnpm-volume/bfd7ec82-e0c9-4500-8d77-e35755dfe7b4/node_modules/.registry.npmjs.org/mongodb/3.5.6/node_modules/mongodb/lib/core/sdam/server.js:489:5)\n' +
[2020-04-26 12:16:33]   '    at MessageStream.messageHandler ' +
[2020-04-26 12:16:33]   '(/rbd/pnpm-volume/bfd7ec82-e0c9-4500-8d77-e35755dfe7b4/node_modules/.registry.npmjs.org/mongodb/3.5.6/node_modules/mongodb/lib/cmap/connection.js:270:5)\n' +
[2020-04-26 12:16:33]   '    at MessageStream.emit (events.js:196:13)\n    at processIncomingData ' +
[2020-04-26 12:16:33]   '(/rbd/pnpm-volume/bfd7ec82-e0c9-4500-8d77-e35755dfe7b4/node_modules/.registry.npmjs.org/mongodb/3.5.6/node_modules/mongodb/lib/cmap/message_stream.js:144:12)\n' +
[2020-04-26 12:16:33]   '    at MessageStream._write ' +
[2020-04-26 12:16:33]   '(/rbd/pnpm-volume/bfd7ec82-e0c9-4500-8d77-e35755dfe7b4/node_modules/.registry.npmjs.org/mongodb/3.5.6/node_modules/mongodb/lib/cmap/message_stream.js:42:5)\n' +
[2020-04-26 12:16:33]   '    at doWrite (_stream_writable.js:417:12)\n    at writeOrBuffer ' +
[2020-04-26 12:16:33]   '(_stream_writable.js:401:5)\n    at MessageStream.Writable.write ' +
[2020-04-26 12:16:33]   '(_stream_writable.js:301:11)\n    at TLSSocket.ondata ' +
[2020-04-26 12:16:33]   '(_stream_readable.js:696:22)\n    at TLSSocket.emit (events.js:196:13)\n    ' +
[2020-04-26 12:16:33]   'at addChunk (_stream_readable.js:290:12)')
[2020-04-26 12:16:33]     at KlasaClient.emit (events.js:185:17)
[2020-04-26 12:16:33]     at module.exports.run (/rbd/pnpm-volume/bfd7ec82-e0c9-4500-8d77-e35755dfe7b4/node_modules/.github.com/dirigeants/klasa/7fbd351c1276a171fdc854bc99f05b5ef89eb32b/node_modules/klasa/src/events/unhandledRejection.js:12:15)
[2020-04-26 12:16:33]     at module.exports._run (/rbd/pnpm-volume/bfd7ec82-e0c9-4500-8d77-e35755dfe7b4/node_modules/.github.com/dirigeants/klasa/7fbd351c1276a171fdc854bc99f05b5ef89eb32b/node_modules/klasa/src/lib/structures/Event.js:102:15)
[2020-04-26 12:16:33]     at process.emit (events.js:196:13)
[2020-04-26 12:16:33]     at processPromiseRejections (internal/process/promises.js:165:18)
[2020-04-26 12:16:33]     at processTicksAndRejections (internal/process/task_queues.js:89:32)```

Server count api

var myHeaders = new Headers();
myHeaders.append("authorization", "YOUR_AUTH_TOKEN");
myHeaders.append("Content-Type", "application/json");

var requestOptions = {
  method: 'POST',
  headers: myHeaders,
  body: JSON.stringify({"server_count": 1500}); // Replace this number with the server count
};

fetch("/api/auth/stats/:botid", requestOptions) // Make sure you include the domain
  .then(response => response.text())
  .then(result => console.log(result))
  .catch(error => console.log('error', error));

How to work means bot coding paste or other

Sending DM to the user when a bot gets added.

i get this error when i will send a private message after an command.
how can i solve this problem

this is the code for the send message
message.author.send(Your bot \${res.name}` has been approved! ๐ŸŽ‰`);

C:\Users\Administrator.pm2\logs\index-error.log last 15 lines:
0|index | path: '/channels/668477405178101780/messages',
0|index | code: 50007,
0|index | httpStatus: 403
0|index | }
0|index | [2020-01-22 23:02:45] [EVENT] C:\Users\Administrator\Desktop\1\luna
\node_modules\klasa\src\events\unhandledRejection.js
0|index | [2020-01-22 23:02:45] Error [ERR_UNHANDLED_ERROR]: Unhandled error.
('Uncaught Promise Error: \n' +
0|index | [2020-01-22 23:02:45] 'DiscordAPIError: Cannot send messages to t
his user\n' +
0|index | [2020-01-22 23:02:45] ' at RequestHandler.execute (C:\Users\
Administrator\Desktop\1\luna\node_modules\discord.js\src\rest\RequestHan
dler.js:170:25)\n' +
0|index | [2020-01-22 23:02:45] ' at processTicksAndRejections (internal
/process/task_queues.js:93:5)')
0|index | [2020-01-22 23:02:45] at KlasaClient.emit (events.js:199:17)
0|index | [2020-01-22 23:02:45] at module.exports.run (C:\Users\Administr
ator\Desktop\1\luna\node_modules\klasa\src\events\unhandledRejection.js:12:15)
0|index | [2020-01-22 23:02:45] at module.exports._run (C:\Users\Administ
rator\Desktop\1\luna\node_modules\klasa\src\lib\structures\Event.js:101:15)
0|index | [2020-01-22 23:02:45] at process.emit (events.js:215:7)
0|index | [2020-01-22 23:02:45] at processPromiseRejections (internal/pro
cess/promises.js:201:33)
0|index | [2020-01-22 23:02:45] at processTicksAndRejections (internal/pr
ocess/task_queues.js:94:32)

Error with klasa

"klasa": "^0.4.0",

Client.defaultPermissionLevels.add(8, ({ client, author }) => process.env.ADMIN_USERS.split(' ').includes(author.id));

TypeError: Client.defaultPermissionLevels.add is not a function

==============================

"klasa": "dirigeants/klasa",

module.exports = Structures.extend('Guild', Guild => {

TypeError: Cannot read property 'extend' of undefined

Error

Umm what does this mean:

node v12.0.0, npm 6.9.0

Installing...

npm WARN [email protected] requires a peer of bufferutil@^4.0.1 but none is installed. You must install peer dependencies yourself.

npm WARN [email protected] requires a peer of erlpack@discordapp/erlpack but none is installed. You must install peer dependencies yourself.

npm WARN [email protected] requires a peer of libsodium-wrappers@^0.7.6 but none is installed. You must install peer dependencies yourself.

npm WARN [email protected] requires a peer of sodium@^3.0.2 but none is installed. You must install peer dependencies yourself.

npm WARN [email protected] requires a peer of utf-8-validate@^5.0.2 but none is installed. You must install peer dependencies yourself.

npm WARN [email protected] requires a peer of zlib-sync@^0.1.6 but none is installed. You must install peer dependencies yourself.

npm WARN [email protected] requires a peer of @klasa/core@^0.0.3 but none is installed. You must install peer dependencies yourself.

npm WARN [email protected] requires a peer of @klasa/dapi-types@^0.2.0 but none is installed. You must install peer dependencies yourself.

npm WARN [email protected] requires a peer of ffmpeg-static@^2.4.0 || ^3.0.0 but none is installed. You must install peer dependencies yourself.

npm WARN [email protected] requires a peer of @discordjs/opus@^0.1.0 but none is installed. You must install peer dependencies yourself.

npm WARN [email protected] requires a peer of node-opus@^0.3.1 but none is installed. You must install peer dependencies yourself.

npm WARN [email protected] requires a peer of opusscript@^0.0.6 but none is installed. You must install peer dependencies yourself.

npm WARN [email protected] requires a peer of bufferutil@^4.0.1 but none is installed. You must install peer dependencies yourself.

npm WARN [email protected] requires a peer of utf-8-validate@^5.0.2 but none is installed. You must install peer dependencies yourself.

npm WARN [email protected] No repository field.

npm WARN [email protected] No license field.

audited 264 packages in 2.575s
found 0 vulnerabilities
Total install time: 5734ms```

follow up

right so i asked in the devs of klasa and they said i need to use an older version of discord.js for it to work so i did that and removed cache from the bot. It all started up but there are a couple of issues, one of them being that the bot doesnt get added to the server of the error unknown user

image

also the editing the bot doesnt work, which it shows errors in the log.
Thank you

MogoDb

Where does the mongo string go? I am willing to reference and add u as an owner to the list free of cost. I dont plan on editing anything. I just mainly want to use it to display my bots on a site.

error

im getting the following error

/rbd/pnpm-volume/57323152-afee-4a56-a145-4c2ab10bea63/node_modules/klasa/src/lib/extensions/KlasaUserStore.js:7
class KlasaUserStore extends UserStore {
^

TypeError: Class extends value undefined is not a constructor or null
at Object. (/rbd/pnpm-volume/57323152-afee-4a56-a145-4c2ab10bea63/node_modules/klasa/src/lib/extensions/KlasaUserStore.js:7:30)
at Module._compile (internal/modules/cjs/loader.js:759:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:770:10)
at Module.load (internal/modules/cjs/loader.js:628:32)
at Function.Module._load (internal/modules/cjs/loader.js:555:12)
at Module.require (internal/modules/cjs/loader.js:666:19)
at require (internal/modules/cjs/helpers.js:16:16)
at Object. (/rbd/pnpm-volume/57323152-afee-4a56-a145-4c2ab10bea63/node_modules/klasa/src/lib/Client.js:25:24)
at Module._compile (internal/modules/cjs/loader.js:759:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:770:10)

It might be to do with mongo as i dont know if i added the correct format of url

New errors

image
After updating to the new commit theres an issue and it keeps erroring.

switching const bot = require('@bot/index'); to const bot = require('@bot/index.js');
didn't fix it either.

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.