Giter Site home page Giter Site logo

khanmanan / automod-bot Goto Github PK

View Code? Open in Web Editor NEW
272.0 10.0 276.0 710 KB

Moderation bot discord

Home Page: https://cwkhan.xyz/discord

License: Other

Dockerfile 100.00%
discor-bot discord-moderation-bot discord-moderation discordjs discordjs-bot discord-music-bot discord discord-music-bot-24-7 discord-fun glitch replit youtube youtube-bot moderation-bot nsfw watch discord-js-bot discordjsbot

automod-bot's Introduction

automod-bot's People

Contributors

heliodoros avatar hypsterop avatar johndavid30 avatar katochayush avatar khanmanan avatar mojitotea avatar notkaskus avatar ryann-devv avatar saivarshithm avatar zerodiscord 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

automod-bot's Issues

The Beta Commands Dont work

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.

Dashboard Error!

`Cannot find module './auth/CheckAuth'
Require stack:

  • C:\Users\smura\Desktop\automod-bot-main\dashboard\app.js
  • C:\Users\smura\Desktop\automod-bot-main\bot.js`

The file doesn't exist
I think the file is incomplete.

Suggestion

Make help command with buttons (discord-buttons)}

Error How to Fix it

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:

  • /home/runner/automod-bot/src/utils/miscUtils.js
  • /home/runner/automod-bot/src/structures/Command.js
  • /home/runner/automod-bot/src/structures/BotClient.js
  • /home/runner/automod-bot/src/structures/index.js
  • /home/runner/automod-bot/bot.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._resolveFilename (/home/runner/automod-bot/node_modules/module-alias/index.js:49:29)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object. (/home/runner/automod-bot/src/utils/miscUtils.js:2:14)
    at Module._compile (node:internal/modules/cjs/loader:1103:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10)
    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. (/home/runner/automod-bot/src/structures/Command.js:4:24)
    at Module._compile (node:internal/modules/cjs/loader:1103:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10)
    at Module.load (node:internal/modules/cjs/loader:981:32) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    '/home/runner/automod-bot/src/utils/miscUtils.js',
    '/home/runner/automod-bot/src/structures/Command.js',
    '/home/runner/automod-bot/src/structures/BotClient.js',
    '/home/runner/automod-bot/src/structures/index.js',
    '/home/runner/automod-bot/bot.js'
    ]
    }
    [nodemon] app crashed - waiting for file changes before starting...

My nodejs version its 1.16 and i do npm install and .env

Excuse me...

This bot is copyed directly from my bot AIO.... we are a compay and have a strict Licence..

ticket mod role error

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

Dashboard

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'

Host

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?

Bot Dashboard errror

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'

help

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

server.js not available

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

The help command doesnt work

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

8D filter

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

Music Node Issues


Current Issue - see screenshot

test


Current Config:

MUSIC: {
IDLE_TIME: 60, // Time in seconds before the bot disconnects from the voice channel
MAX_SEARCH_RESULTS: 5,
NODES: [
{
host: "54.37.6.86",
port: 80,
password: "Blacky#9125",
identifier: "54.37.6.86",
retryDelay: 5000,
secure: false,
},
],
},

Able to ping IP - Ping results below, However I'm unable to access it via web browse

--- 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


Troubleshooting Completed:

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

Cant start the bot

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

Help

How does the premium system work?
Message me on discord if you can
D3rp1xel#2356

Giveaway help

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

Suggestion

Set background, Set Color, Set Opacity, and Set Role Rewards
I don't expect you to do it just a suggestion :)

error with using /play command

hey,

I get an error when I use /play it says it has something to do with the npm package petitio but I have deleted it and reinstalled tested some changes and even tried older versions but non of these things worked.

could you help me?

image

Music config not clear/Music not working

So not sure what to put for this section of the config:
image

Also is fails to connect to these credentials:
image

And this happens when using /play:
image

Any ideas or just clarification on how to use the music config?

cant start the bot

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 :(

Command Error

Hello! /rep view {user} is working, but /rep give {user} is not working.. How can I fix?

Spotify Music Not Working.

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

Update to djs v13

Are you still working on this project? It would be cool to see this bot in djs v13

Self Host

is there a way to self host the bot? in a micro server on in a Raspberry?

Dashboard Selector issue (dashboard form)

hi i got a problem with the dashboard form, it's not showing up like it have to be:
image

sometimes it's show this message error too and make the bot shutdown:
TypeError: Cannot read properties of null (reading 'id')
at /home/runner/automod-bot/dashboard/routes/discord.js:12:25

MongoDB

Is it possible to disable MongoDB if it is not available in the country (

setprefix issue

The setprefix command change all the bot prefix not only the guild's one
any solutions?

Unhandled exception

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?

Cant find module

[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...

Error

error2
how to fix below error

MongoDB

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.

My mongodb configurations are like this:
Screenshot 2022-11-26 at 9 12 56 AM_censored_via_10015_io_censored_via_10015_io

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.