Giter Site home page Giter Site logo

discord-modmail-bot's Introduction

Basic Discord Modmail Bot in Discord.js v13

๐Ÿ”ฅ Features

  • Its very easy to start and end session
  • Highly configurable
  • Made by ctk ( yes, its a feature xD )
  • Language support ( need to do small changement )

๐Ÿค” How to setup?

  1. Clone the repository then use npm i
  2. Open settings.json file and fill the required details
  3. Now run node index.js in terminal
  4. Enjoy Mango juice with galic bread

discord-modmail-bot's People

Contributors

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

Watchers

 avatar  avatar  avatar  avatar  avatar

discord-modmail-bot's Issues

undefined

(node:7496) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'id' of undefined

if(receivedMessage.channel.parentID == category.id) {

Error

๎บง node index.js
internal/modules/cjs/loader.js:818
throw err;
^

Error: Cannot find module 'node:events'
Require stack:

  • /home/runner/Discord-Modmail-Bot-3/node_modules/discord.js/src/client/BaseClient.js
  • /home/runner/Discord-Modmail-Bot-3/node_modules/discord.js/src/index.js
  • /home/runner/Discord-Modmail-Bot-3/index.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)
    at Function.Module._load (internal/modules/cjs/loader.js:667:27)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object. (/home/runner/Discord-Modmail-Bot-3/node_modules/discord.js/src/client/BaseClient.js:3:22)
    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) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    '/home/runner/Discord-Modmail-Bot-3/node_modules/discord.js/src/client/BaseClient.js',
    '/home/runner/Discord-Modmail-Bot-3/node_modules/discord.js/src/index.js',
    '/home/runner/Discord-Modmail-Bot-3/index.js'
    ]
    }
    exit status 1

Error unexpected token

/home/runner/Discord-Modmail-Bot/index.js:27
if (!guild?.me.permissions.has("ADMINISTRATOR")) {
^

SyntaxError: Unexpected token '.'
at wrapSafe (internal/modules/cjs/loader.js:915:16)
at Module._compile (internal/modules/cjs/loader.js:963:27)
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 Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
at internal/main/run_main_module.js:17:47
exit status 1

modmail ignoring dms

hi
so i forked your repo, and set it up
one issue.. it ignores dms
i can open a thread from the server, but not through dms

Modmail ignoring DMs

Background

I set the modmail up on Heroku, it worked fine for a day, after a day it stopped working.

Issue

Just set up the modmail, it went online. I set the server up and DMed the bot, it completely ignored by DMs. I used the -open command to create a thread and spoke in the the modmail channel, it did DM me; but when I DMed the bot back it did nothing.

issue

how to run the bot what's the command for that? please reply!!

Not receiving DM's at all

I ran the bot. It worked fine until I DM'd the bot. When I DM'd I got the following error in the terminal

((node:176) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'id' of undefined
(node:176) 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:176) [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.
)

All the rest of the commands worked fine except this..

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.