Welcome to my page!
I'm Peter, Fullstack developer from
QC, Canada.
๐ Projects | โญ Stars | ๐ Forks | ๐ Issues | ๐ฌ Pull requests |
Discord Package | ||||
Pogy [outdated] |
A fully customizable discord bot made with discord.js with over 183 commands, 12 categories, and a fully customizable dashboard. Watching over 350,000 users and 1k guilds. [deprecated]
Home Page: https://pogy.xyz
License: Apache License 2.0
Welcome to my page!
I'm Peter, Fullstack developer from
QC, Canada.
๐ Projects | โญ Stars | ๐ Forks | ๐ Issues | ๐ฌ Pull requests |
Discord Package | ||||
Pogy [outdated] |
Hey ur Website is offline i cant join the Support Discord can u send me The Link ?
Dashboard CSS Broken & OAuth2 won't work. I follow the tutorial and followed the previous solution to closed issues here, still, doesn't work.
Hi I would like to know how to put the bot and the dashboard via my VPS in IIS
i wanna try this code, but will it still work? if i do?
๎บง node shard.js
internal/modules/cjs/loader.js:1044
throw err;
^
SyntaxError: /home/runner/Pogy/config.json: Unexpected token / in JSON at position 44
at parse ()
at Object.Module._extensions..json (internal/modules/cjs/loader.js:1041:22)
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/Pogy/shard.js:1:16)
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)
exit status 1
this error show me but not every time
idk what that
(node:366) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'tag' of undefined
at Timeout._onTimeout (/home/runner/bottext/events/ready.js:187:124)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:366) 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: 1)
(node:366) [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.
Type 7: Toggle reaction role (the user will always be able to set only one role)
Hi can I ask? I'm testing your bot because I would like to translate it into my language and I have a minor problem with role reactions
Everything works, but when I restart the bot, db = null but it is stored in the database
he just can't find it
console.log('test')
await Db.findOne(
{ guildid: message.guild.id, reaction: emoji.toString(), msgid: message.id },
async (err, db) => {
if (!db) return;
console.log('test2' + db)
the premium expiration system does not work, I added a 60 second code to try, it does not expire, the time does not move I have the impression, any idea? thanks
hello Peter,
I m using the pogy bot code and i have a problem, when i go to the dashboard and go to report or contact and send a message, it tell me in the console :
(node:6915) UnhandledPromiseRejectionWarning: DiscordAPIError: 404: Not Found
at RequestHandler.execute (/home/runner/MoonLobby/node_modules/discord.js/src/rest/RequestHandler.js:154:13)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async RequestHandler.push (/home/runner/MoonLobby/node_modules/discord.js/src/rest/RequestHandler.js:39:14)
(node:6915) 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: 1)
(node:6915) [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.
and i hope you tell me how to fix it
Regards,
Ju52b
how to make my server premium
/home/container/node_modules/mongodb/lib/cmap/connection.js:268
callback(new MongoError(document));
^
MongoError: db already exists with different case already have: [cluster0] trying to create [Cluster0]
at MessageStream.messageHandler (/home/container/node_modules/mongodb/lib/cmap/connection.js:268:20)
at MessageStream.emit (node:events:390:28)
at processIncomingData (/home/container/node_modules/mongodb/lib/cmap/message_stream.js:144:12)
at MessageStream.write (/home/container/node_modules/mongodb/lib/cmap/message_stream.js:42:5)
at writeOrBuffer (node:internal/streams/writable:389:12)
at write (node:internal/streams/writable:330:10)
at MessageStream.Writable.write (node:internal/streams/writable:334:10)
at TLSSocket.ondata (node:internal/streams/readable:754:22)
at TLSSocket.emit (node:events:390:28)
at addChunk (node:internal/streams/readable:315:12)
at readableAddChunk (node:internal/streams/readable:289:9)
at TLSSocket.Readable.push (node:internal/streams/readable:228:10)
at TLSWrap.onStreamRead (node:internal/stream_base_commons:199:23) {
operationTime: Timestamp { bsontype: 'Timestamp', low: 1, high: 1634912775 },
ok: 0,
code: 13297,
codeName: 'DatabaseDifferCase',
'$clusterTime': {
clusterTime: Timestamp { bsontype: 'Timestamp', low: 1, high: 1634912775 },
signature: {
hash: Binary {
bsontype: 'Binary',
sub_type: 0,
position: 20,
buffer: Buffer(20) [Uint8Array] [
100, 22, 212, 157, 30, 60,
223, 133, 146, 80, 233, 103,
201, 59, 221, 22, 5, 115,
150, 95
]
},
keyId: Long { bsontype: 'Long', low: 1, high: 1621796857 }
}
}
}
/home/container/node_modules/mongodb/lib/cmap/connection.js:268
callback(new MongoError(document));
^
MongoError: db already exists with different case already have: [cluster0] trying to create [Cluster0]
at MessageStream.messageHandler (/home/container/node_modules/mongodb/lib/cmap/connection.js:268:20)
at MessageStream.emit (node:events:390:28)
at processIncomingData (/home/container/node_modules/mongodb/lib/cmap/message_stream.js:144:12)
at MessageStream.write (/home/container/node_modules/mongodb/lib/cmap/message_stream.js:42:5)
at writeOrBuffer (node:internal/streams/writable:389:12)
at write (node:internal/streams/writable:330:10)
at MessageStream.Writable.write (node:internal/streams/writable:334:10)
at TLSSocket.ondata (node:internal/streams/readable:754:22)
at TLSSocket.emit (node:events:390:28)
at addChunk (node:internal/streams/readable:315:12)
at readableAddChunk (node:internal/streams/readable:289:9)
at TLSSocket.Readable.push (node:internal/streams/readable:228:10)
at TLSWrap.onStreamRead (node:internal/stream_base_commons:199:23) {
operationTime: Timestamp { bsontype: 'Timestamp', low: 1, high: 1634912775 },
ok: 0,
code: 13297,
codeName: 'DatabaseDifferCase',
'$clusterTime': {
clusterTime: Timestamp { bsontype: 'Timestamp', low: 1, high: 1634912775 },
signature: {
hash: Binary {
bsontype: 'Binary',
sub_type: 0,
position: 20,
buffer: Buffer(20) [Uint8Array] [
100, 22, 212, 157, 30, 60,
223, 133, 146, 80, 233, 103,
201, 59, 221, 22, 5, 115,
150, 95
]
},
keyId: Long { bsontype: 'Long', low: 1, high: 1621796857 }
}
}
}
/home/container/node_modules/discord.js/src/sharding/Shard.js:158
reject(new Error('SHARDING_READY_DIED', this.id));
^
Error [SHARDING_READY_DIED]: Shard 0's process exited before its Client became ready.
at Shard.onDeath (/home/container/node_modules/discord.js/src/sharding/Shard.js:158:16)
at Object.onceWrapper (node:events:510:26)
at Shard.emit (node:events:390:28)
at Shard._handleExit (/home/container/node_modules/discord.js/src/sharding/Shard.js:384:10)
at ChildProcess.emit (node:events:390:28)
at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
Emitted 'error' event on Shard instance at:
at /home/container/node_modules/discord.js/src/sharding/Shard.js:392:49
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
[Symbol(code)]: 'SHARDING_READY_DIED'
TokenError
at Strategy.OAuth2Strategy.parseErrorResponse (/home/runner/Sharona/node_modules/passport-oauth2/lib/strategy.js:358:12)
at Strategy.OAuth2Strategy._createOAuthError (/home/runner/Sharona/node_modules/passport-oauth2/lib/strategy.js:405:16)
at /home/runner/Sharona/node_modules/passport-oauth2/lib/strategy.js:175:45
at /home/runner/Sharona/node_modules/oauth/lib/oauth2.js:191:18
at passBackControl (/home/runner/Sharona/node_modules/oauth/lib/oauth2.js:132:9)
at IncomingMessage. (/home/runner/Sharona/node_modules/oauth/lib/oauth2.js:157:7)
at IncomingMessage.emit (events.js:326:22)
at endReadableNT (_stream_readable.js:1241:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
From the dashboard, in the embeds section; when i write a message i have several problems.
I can't wrap and keep the blockquote.
in the preview on the dashboard the blockquotes are displayed correctly, but once the message is posted on discord, the blockquotes have different thicknesses and an incorrect thickness.
as you can see in the dashboard preview the thickness of the blockquote is correct, but I cannot wrap keeping the blockquote in an empty line.
๎บง node shard.js
util.js:160
throw new ERR_INVALID_ARG_TYPE('superCtor.prototype',
^
TypeError [ERR_INVALID_ARG_TYPE]: The "superCtor.prototype" property must be of type object. Received undefined
at inherits (util.js:160:11)
at Object. (/home/runner/Mmbot/node_modules/winston/node_modules/readable-stream/lib/_stream_duplex.js:46:20)
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)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object. (/home/runner/Mmbot/node_modules/winston/node_modules/readable-stream/readable.js:11:20)
at Module._compile (internal/modules/cjs/loader.js:999:30) {
code: 'ERR_INVALID_ARG_TYPE'
}
Pls tell how to use the recaptcha thingy
Add slash command support. This will help the bot be more spread and people will use slash commands too! Just a suggestion.
Where get emojis and how set up this emojis?
So I have problems with the Invalid OAuth2 redict_url. I configured all Redirects & it's still coming with this error.
Here is my config for this dashboard:
module.exports = {
"verification": "",
"description": "hi",
"domain": "REMOVED FOR SECURITY REASONS",
"google_analitics": "",
"token": process.env.TOKEN,
"https":"https://",
"port":"8080",
"client_id":"REMOVED FOR SECURITY REASONS",
"secret":"REMOVED FOR SECURITY REASONS"
}
Maybe I added wrong Redirects?
SyntaxError: C:\Users\ladyg\Videos\My Discord Bots\Pogy-main\config.json: Unexpected token / in JSON at position 169 at parse (<anonymous>) at Object.Module._extensions..json (node:internal/modules/cjs/loader:1169:22) 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.<anonymous> (C:\Users\ladyg\Videos\My Discord Bots\Pogy-main\shard.js:1:16) at Module._compile (node:internal/modules/cjs/loader:1103:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1155:10) at Module.load (node:internal/modules/cjs/loader:981:32)
I'm trying to join the support server, but I cannot find a valid link.
TypeError: Cannot read property 'members' of undefined
at /home/runner/Bot-with-Advanced-Dashboard/dashboard/dashboard.js:640:25
at Layer.handle [as handle_request] (/home/runner/Bot-with-Advanced-Dashboard/node_modules/express/lib/router/layer.js:95:5)
at next (/home/runner/Bot-with-Advanced-Dashboard/node_modules/express/lib/router/route.js:137:13)
at checkAuth (/home/runner/Bot-with-Advanced-Dashboard/dashboard/dashboard.js:138:41)
at Layer.handle [as handle_request] (/home/runner/Bot-with-Advanced-Dashboard/node_modules/express/lib/router/layer.js:95:5)
at next (/home/runner/Bot-with-Advanced-Dashboard/node_modules/express/lib/router/route.js:137:13)
at Route.dispatch (/home/runner/Bot-with-Advanced-Dashboard/node_modules/express/lib/router/route.js:112:3)
at Layer.handle [as handle_request] (/home/runner/Bot-with-Advanced-Dashboard/node_modules/express/lib/router/layer.js:95:5)
at /home/runner/Bot-with-Advanced-Dashboard/node_modules/express/lib/router/index.js:281:22
at Function.process_params (/home/runner/Bot-with-Advanced-Dashboard/node_modules/express/lib/router/index.js:335:12)
at next (/home/runner/Bot-with-Advanced-Dashboard/node_modules/express/lib/router/index.js:275:10)
at urlencodedParser (/home/runner/Bot-with-Advanced-Dashboard/node_modules/body-parser/lib/types/urlencoded.js:91:7)
at Layer.handle [as handle_request] (/home/runner/Bot-with-Advanced-Dashboard/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/home/runner/Bot-with-Advanced-Dashboard/node_modules/express/lib/router/index.js:317:13)
at /home/runner/Bot-with-Advanced-Dashboard/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/home/runner/Bot-with-Advanced-Dashboard/node_modules/express/lib/router/index.js:335:12)
at next (/home/runner/Bot-with-Advanced-Dashboard/node_modules/express/lib/router/index.js:275:10)
at jsonParser (/home/runner/Bot-with-Advanced-Dashboard/node_modules/body-parser/lib/types/json.js:110:7)
at Layer.handle [as handle_request] (/home/runner/Bot-with-Advanced-Dashboard/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/home/runner/Bot-with-Advanced-Dashboard/node_modules/express/lib/router/index.js:317:13)
at /home/runner/Bot-with-Advanced-Dashboard/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/home/runner/Bot-with-Advanced-Dashboard/node_modules/express/lib/router/index.js:335:12)
at next (/home/runner/Bot-with-Advanced-Dashboard/node_modules/express/lib/router/index.js:275:10)
at SessionStrategy.strategy.pass (/home/runner/Bot-with-Advanced-Dashboard/node_modules/passport/lib/middleware/authenticate.js:343:9)
at /home/runner/Bot-with-Advanced-Dashboard/node_modules/passport/lib/strategies/session.js:69:12
at pass (/home/runner/Bot-with-Advanced-Dashboard/node_modules/passport/lib/authenticator.js:337:31)
at deserialized (/home/runner/Bot-with-Advanced-Dashboard/node_modules/passport/lib/authenticator.js:349:7)
at /home/runner/Bot-with-Advanced-Dashboard/dashboard/dashboard.js:76:45
anyone can claim premium if they just put /redeem after the url
Hey there!
I'd like to report a security issue but cannot find contact instructions on your repository.
If not a hassle, might you kindly add a SECURITY.md
file with an email, or another contact method? GitHub recommends this best practice to ensure security issues are responsibly disclosed, and it would serve as a simple instruction for security researchers in the future.
Thank you for your consideration, and I look forward to hearing from you!
(cc @huntr-helper)
Will there come a new Version from Pogy or a other Bot like Pogy?
I love Pogy but it is using an old Discord.js Version
When Clicking On The Dashboard Url On My Own Instance the url is not good for authenticating becuase it its uri instead of url how do i fix that
When i set my shards to then i get this:
PS C:\Teun\NeoSecurity> node shard.js
node:internal/process/promises:279
triggerUncaughtException(err, true /* fromPromise */);
^
Error [SHARDING_IN_PROCESS]: Shards are still being spawned.
at ShardingManager._performOnShards (C:\Teun\NeoSecurity\node_modules\discord.js\src\sharding\ShardingManager.js:258:75)
at ShardingManager.fetchClientValues (C:\Teun\NeoSecurity\node_modules\discord.js\src\sharding\ShardingManager.js:245:17)
at Shard._handleMessage (C:\Teun\NeoSecurity\node_modules\discord.js\src\sharding\Shard.js:338:22)
at ChildProcess.emit (node:events:527:28)
at emit (node:internal/child_process:938:14)
at processTicksAndRejections (node:internal/process/task_queues:84:21)
(process:21128): GLib-GIO-WARNING *: 10:01:08.243: Unexpectedly, UWP app Clipchamp.Clipchamp_2.2.12.0_neutral__yxz26nhyzhsrt' (AUMId
Clipchamp.Clipchamp_yxz26nhyzhsrt!App') supports 46 extensions but has no verbs
2022-05-07 10:01:09 [info] [Shard] Launching Shard 2
Dashboard is up and running on port 5003.
node:internal/process/promises:279
triggerUncaughtException(err, true / fromPromise */);
^
Error [SHARDING_IN_PROCESS]: Shards are still being spawned.
at ShardingManager._performOnShards (C:\Teun\NeoSecurity\node_modules\discord.js\src\sharding\ShardingManager.js:258:75)
at ShardingManager.fetchClientValues (C:\Teun\NeoSecurity\node_modules\discord.js\src\sharding\ShardingManager.js:245:17)
at Shard._handleMessage (C:\Teun\NeoSecurity\node_modules\discord.js\src\sharding\Shard.js:338:22)
at ChildProcess.emit (node:events:527:28)
at emit (node:internal/child_process:938:14)
at processTicksAndRejections (node:internal/process/task_queues:84:21)
(process:7672): GLib-GIO-WARNING **: 10:01:13.846: Unexpectedly, UWP app Clipchamp.Clipchamp_2.2.12.0_neutral__yxz26nhyzhsrt' (AUMId
Clipchamp.Clipchamp_yxz26nhyzhsrt!App') supports 46 extensions but has no verbs
2022-05-07 10:01:14 [info] [Shard] Launching Shard 3
node:events:505
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE: address already in use :::5003
at Server.setupListenHandle [as _listen2] (node:net:1372:16)
at listenInCluster (node:net:1420:12)
at Server.listen (node:net:1508:7)
at Function.listen (C:\Teun\NeoSecurity\node_modules\express\lib\application.js:618:24)
at module.exports (C:\Teun\NeoSecurity\dashboard\dashboard.js:5243:9)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Emitted 'error' event on Server instance at:
at emitErrorNT (node:net:1399:8)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
code: 'EADDRINUSE',
errno: -4091,
syscall: 'listen',
address: '::',
port: 5003
}
C:\Teun\NeoSecurity\node_modules\discord.js\src\sharding\Shard.js:158
reject(new Error('SHARDING_READY_DIED', this.id));
^
Error [SHARDING_READY_DIED]: Shard 1's process exited before its Client became ready.
at Shard.onDeath (C:\Teun\NeoSecurity\node_modules\discord.js\src\sharding\Shard.js:158:16)
at Object.onceWrapper (node:events:642:26)
at Shard.emit (node:events:527:28)
at Shard._handleExit (C:\Teun\NeoSecurity\node_modules\discord.js\src\sharding\Shard.js:384:10)
at ChildProcess.emit (node:events:527:28)
at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
Emitted 'error' event on Shard instance at:
at C:\Teun\NeoSecurity\node_modules\discord.js\src\sharding\Shard.js:392:49
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
[Symbol(code)]: 'SHARDING_READY_DIED'
}
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.