sparker-99 / admin-bot Goto Github PK
View Code? Open in Web Editor NEWA small discord bot to interact with IW4M Admin's api and execute commands from discord
License: MIT License
A small discord bot to interact with IW4M Admin's api and execute commands from discord
License: MIT License
Admin-bot/commands/slash/Modals/login.js
Line 51 in ffc75a7
The user can modify the JSON sent to the server and make it invalid JSON or send other data to the server that was not intended because the user input is not sanitized
Example: User types in ", "my_custom_json_value": "poo
as their password and then the json
{
"password": "",
"my_custom_json_value": "poo"
}
is sent to the server
C:\Users\Administrator\Downloads\IW4MAdmin\_TOOLS\Discord Bot>StartAdminBot.cmd
node:internal/modules/cjs/loader:1152
throw err;
^
Error: Cannot find module 'discord.js'
Require stack:
- C:\Users\Administrator\Downloads\IW4MAdmin\_TOOLS\Discord Bot\index.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1149:15)
at Module._load (node:internal/modules/cjs/loader:990:27)
at Module.require (node:internal/modules/cjs/loader:1237:19)
at require (node:internal/modules/helpers:176:18)
at Object.<anonymous> (C:\Users\Administrator\Downloads\IW4MAdmin\_TOOLS\Discord Bot\index.js:1:61)
at Module._compile (node:internal/modules/cjs/loader:1378:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1437:10)
at Module.load (node:internal/modules/cjs/loader:1212:32)
at Module._load (node:internal/modules/cjs/loader:1028:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:142:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\\Users\\Administrator\\Downloads\\IW4MAdmin\\_TOOLS\\Discord Bot\\index.js'
]
}
Node.js v21.6.1
Press any key to continue . . .
ERROR
The Admin-bot ran really well but since the new update from iw4madmin it doesn't work properly anymore i keep getting this error
node:internal/modules/cjs/loader:1078
throw err;
^
Error: Cannot find module 'node-json-db'
Require stack:
Node.js v18.16.0
What i already tried.
i have already updated everything (node,npm,adminbot) i have npm install node-json-db
executed and still have the problem I do not know what the problem could be.
Priority
Would be urgent for us
When running the bot I get the following message:
(node:10160) DeprecationWarning: Guild#me is deprecated. Use Guild#members#me instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:10160) DeprecationWarning: MessageEmbed#addField is deprecated and will be removed in the next major update. Use MessageEmbed#addFields instead.
Also, none of the commands are working.
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.