Join discord for updates discord server
khanmanan / automod-bot Goto Github PK
View Code? Open in Web Editor NEWModeration bot discord
Home Page: https://cwkhan.xyz/discord
License: Other
Moderation bot discord
Home Page: https://cwkhan.xyz/discord
License: Other
Join discord for updates discord server
Well the beta commands like the rank and lb don't work and the Config.JS does not have proper index on what to do.
`Cannot find module './auth/CheckAuth'
Require stack:
The file doesn't exist
I think the file is incomplete.
Failed to launch dashboard : 'Route is not defined'
Make help command with buttons (discord-buttons)}
Unban command?
npm run start
[email protected] start /home/runner/automod-bot
nodemon bot.js
[nodemon] 2.0.15
[nodemon] to restart at any time, enter rs
[nodemon] watching path(s): .
[nodemon] watching extensions: js,mjs,json
[nodemon] starting node bot.js
node:internal/modules/cjs/loader:936
throw err;
^
Error: Cannot find module '/home/runner/automod-bot/src/data.json'
Require stack:
My nodejs version its 1.16 and i do npm install and .env
This bot is copyed directly from my bot AIO.... we are a compay and have a strict Licence..
hey when i setup the tickets it doesn't give the perms to the role that needs to manage the tickets can you help me with it
any one got a the code format example with the slash command for this bot?
this happend when i try to launch the dashboard
[error] Failed to launch dashboard : "Cannot find module './auth/CheckAuth'\n" +
'Require stack:\n' +
'- /root/automod-bot/dashboard/app.js\n' +
'- /root/automod-bot/bot.js'
Can we host with heroku maybe we dont want replit because of project is public
If we can
can u tell us a way to deploy?
Ive added:
Checkauth.js:
module.exports = async (req, res, next) => {
if(!req.session.user){
const redirectURL = ((req.originalUrl.includes("login") || req.originalUrl === "/") ? "/selector" : req.originalUrl);
const state = Math.random().toString(36).substring(5);
req.client.states[state] = redirectURL;
return res.redirect(/api/login?state=${state});
}
return next();
};
But then this error:
[error] Failed to launch dashboard : 'Invalid regular expression flags'
internal/modules/cjs/loader.js:613
2:43 PM
throw err;
2:43 PM
^
2:43 PM
2:43 PM
Error: Cannot find module '/app/server.js'
2:43 PM
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:610:15)
2:43 PM
at Function.Module._load (internal/modules/cjs/loader.js:526:27)
2:43 PM
at Function.Module.runMain (internal/modules/cjs/loader.js:826:10)
2:43 PM
at internal/main/run_main_module.js:17:11
Make a sef host heroku template
internal/modules/cjs/loader.js:905
throw err;
^
Error: Cannot find module '/home/runner/automod-bot/server.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
at Function.Module._load (internal/modules/cjs/loader.js:746:27)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
at internal/main/run_main_module.js:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: node server.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! /home/runner/.npm/_logs/2022-04-08T22_37_32_233Z-debug.log
it gives me this error : messageRun : 'Invalid Form Body\n' +
components[1].components[3].url: Scheme "1016821289207472168" is not supported. Scheme must be one of ('http', 'https', 'discord').
pls help
can someone make me this code match with the bot packages and stuffs
i tryed myself but i still have issues with it
module.exports = {
help: {
name: "8d",
aliases: []
},
run: async (client, message, args) => {
if (!message.member.voice.channel) return message.channel.send("❌ | You are not in a voice channel!");
if (message.guild.me.voice.channel && message.member.voice.channel.id !== message.guild.me.voice.channel.id) return message.channel.send("❌ | You are not in my voice channel!");
if (!client.player.isPlaying(message.guild.id)) {
return message.channel.send("❌ | I'm not playing anything?");
}
const edEnabled = await client.player.getQueue(message.guild.id).filters["8D"];
client.player.setFilters(message.guild.id, {
"8D": !edEnabled
});
return message.channel.send(`✅ | 8D ${!edEnabled ? "Enabled" : "Disabled"}!`)
}
};
tnx
--- PING 54.37.6.86 (54.37.6.86) 56(84) bytes of data. ---
64 bytes from 54.37.6.86: icmp_seq=1 ttl=48 time=16.9 ms
64 bytes from 54.37.6.86: icmp_seq=2 ttl=48 time=16.9 ms
64 bytes from 54.37.6.86: icmp_seq=3 ttl=48 time=16.9 ms
64 bytes from 54.37.6.86: icmp_seq=4 ttl=48 time=17.0 ms
Tested on alternative device,
Tested ports - it's open locally,
Tested external Ports however port 80 is closed on 54.37.6.86
Is it possible that the Server on OVH has now ended and config has not been changed, if possible can the new config for the music node be provided
[error] Track Error Something broke when playing the track. (Music Issue)
[error] Failed to launch dashboard : 'Route.get() requires a callback function but got a [object Object]'
hey @Khanmanan @MojitoTea @ZeroDiscord @NotKaskus i would like to start up the bot but i get this error
[email protected] start
nodemon bot.js
[nodemon] 2.0.15
[nodemon] to restart at any time, enter rs
[nodemon] watching path(s): .
[nodemon] watching extensions: js,mjs,json
[nodemon] starting node bot.js
C:\Users\proki\Downloads\automod-bot-main\node_modules\erela.js\dist\structures\Node.js:25
throw new TypeError('Node option "host" must be present and be a non-empty string.');
^
TypeError: Node option "host" must be present and be a non-empty string.
at check (C:\Users\proki\Downloads\automod-bot-main\node_modules\erela.js\dist\structures\Node.js:25:15)
at new Node (C:\Users\proki\Downloads\automod-bot-main\node_modules\erela.js\dist\structures\Node.js:68:9)
at new Manager (C:\Users\proki\Downloads\automod-bot-main\node_modules\erela.js\dist\structures\Manager.js:82:17)
at new MusicManager (C:\Users\proki\Downloads\automod-bot-main\src\structures\MusicManager.js:29:5)
at new BotClient (C:\Users\proki\Downloads\automod-bot-main\src\structures\BotClient.js:64:25)
at Object. (C:\Users\proki\Downloads\automod-bot-main\bot.js:11:16)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:79:12)
at node:internal/main/run_main_module:17:47
[nodemon] app crashed - waiting for file changes before starting...
could you help me
How does the premium system work?
Message me on discord if you can
D3rp1xel#2356
Hi guys can u help for change Text of Giveaway I cant change what goes to mongodb. example Congratulations, @test! You won Test!
where can i change this text I saw this place in code there is written mongoose.Mixed
Set background, Set Color, Set Opacity, and Set Role Rewards
I don't expect you to do it just a suggestion :)
just check out https://render.com
mute function doesnot work error code 50013
TypeError: Node option "host" must be present and be a non-empty string.
at check (home\node_modules\erela.js\dist\structures\Node.js:25:15)
at new Node (home\node_modules\erela.js\dist\structures\Node.js:68:9)
at new Manager (home\node_modules\erela.js\dist\structures\Manager.js:82:17)
at new MusicManager (home\src\structures\MusicManager.js:29:5)
at new BotClient (home\src\structures\BotClient.js:64:25)
at Object. (home\bot.js:11:16)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
at node:internal/main/run_main_module:17:47
please help, i can't understand a thing :(
Hello! /rep view {user} is working, but /rep give {user} is not working.. How can I fix?
Hi! So All The Music works however spotify links do not. does anyone know what files make it work? i changed some things and i cant work out which file is causing it
Are you still working on this project? It would be cool to see this bot in djs v13
is there a way to self host the bot? in a micro server on in a Raspberry?
Is it possible to disable MongoDB if it is not available in the country (
The setprefix command change all the bot prefix not only the guild's one
any solutions?
It ends up with [error] and bot doesn’t go online
[2022-11-29 21:48:44:090] [info] Loaded 22 events. Success (22) Failed (0)
[2022-11-29 21:48:45:013] [success] VersionCheck: Your discord bot is up to date
[2022-11-29 21:48:45:014] [info] Validating config.js and environment variables
[2022-11-29 21:48:45:014] [warn] env: WEATHERSTACK_KEY is missing. Weather command won't work
[2022-11-29 21:48:45:014] [info] Launching dashboard
[2022-11-29 21:48:45:115] [info] Connecting to MongoDb...
[2022-11-29 21:48:45:118] [success] Dashboard is listening on port 8080
[2022-11-29 21:48:46:744] [success] Mongoose: Database connection established
[2022-11-29 21:48:56:705] [error] Unhandled exception : 'Privileged intent provided is not enabled or whitelisted.'
Can you look inti my case and help me with what to do?
Plus you provided that dashboard files, where can I use them?
[nodemon] 2.0.15
[nodemon] to restart at any time, enter rs
[nodemon] watching path(s): .
[nodemon] watching extensions: js,mjs,json
[nodemon] starting node bot.js bot.js
node:internal/modules/cjs/loader:936
throw err;
^
Error: Cannot find module '/home/runner/Aww/bot.js'
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
[nodemon] app crashed - waiting for file changes before starting...
Owner commands do not work. Saids you are not a owner but i set my id correctly in config.js
Command : CustomPrefix
Complete logs:
node .
[2022-11-26 17:11:15:945] [info] Loading commands...
[2022-11-26 17:11:16:391] [success] Loaded 89 commands
[2022-11-26 17:11:16:392] [success] Loaded 73 slash commands
[2022-11-26 17:11:16:393] [info] Loading contexts...
[2022-11-26 17:11:16:441] [success] Loaded 2 USER contexts
[2022-11-26 17:11:16:442] [success] Loaded 0 MESSAGE contexts
[2022-11-26 17:11:16:443] [info] Loading events...
╔═══════════════════════════════════╗
║ Client Events ║
║ error.js │ ✓ ║
║ guildCreate.js │ ✓ ║
║ guildDelete.js │ ✓ ║
║ interactionCreate.js │ ✓ ║
║ inviteCreate.js │ ✓ ║
║ inviteDelete.js │ ✓ ║
║ guildMemberAdd.js │ ✓ ║
║ guildMemberRemove.js │ ✓ ║
║ messageCreate.js │ ✓ ║
║ messageDelete.js │ ✓ ║
║ raw.js │ ✓ ║
║ messageReactionAdd.js │ ✓ ║
║ messageReactionRemove.js │ ✓ ║
║ ready.js │ ✓ ║
║ voiceStateUpdate.js │ ✓ ║
║ warn.js │ ✓ ║
╚═══════════════════════════╧═══════╝
╔═══════════════════════════════════╗
║ Music Events ║
║ nodeConnect.js │ ✓ ║
║ nodeError.js │ ✓ ║
║ nodeReconnect.js │ ✓ ║
║ queueEnd.js │ ✓ ║
║ trackError.js │ ✓ ║
║ trackStart.js │ ✓ ║
╚═══════════════════════════╧═══════╝
[2022-11-26 17:11:16:661] [info] Loaded 22 events. Success (22) Failed (0)
[2022-11-26 17:11:17:053] [success] VersionCheck: Your discord bot is up to date
[2022-11-26 17:11:17:054] [info] Validating config.js and environment variables
[2022-11-26 17:11:17:054] [info] Connecting to MongoDb...
[2022-11-26 17:11:26:778] [error] Unhandled exception : 'Operation giveaways.find()
buffering timed out after 10000ms'
[2022-11-26 17:11:47:189] [error] Unhandled exception : "Could not connect to any servers in your MongoDB Atlas cluster. One common reason is that you're trying to access the database from an IP that isn't whitelisted. Make sure your current IP address is on your Atlas cluster's IP whitelist: https://docs.atlas.mongodb.com/security-whitelist/"
Im running this on replit.
replace muting with timeout
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.