A discord chatbot made using discord.js

Overview

Discord Chatbot

A discord chatbot made with Discord.js and Mongoose.

πŸ“₯ Installation and usage

  1. Install Node.js v16.9.0 or higher.
  2. Download and unzip the code or clone the repo using command line git clone https://github.com/Anonymous4078/chatbot.git.
  3. Install all dependencies using npm install, make sure you have installed discord.js-dev version.
  4. Rename .env.example to .env and fill up the secrets and fill up config.json too.
  5. Turn on the Message Content intent from the Discord Developer Portal.
  6. Start the bot with npm run start.

πŸ“‹ License

Distributed under the GNU General Public License v3.0 License. See LICENSE for more information.

Comments
  • Mongoose error

    Mongoose error

    Yeahh I got this error while trying to host the bot. I'd really appreciate it if someone could help me!

    MongooseError: The uri parameter to openUri() must be a string, got "undefined". Make sure the first parameter to mongoose.connect() or mongoose.createConnection() is a string. at NativeConnection.Connection.openUri (/app/node_modules/mongoose/lib/connection.js:689:11) at /app/node_modules/mongoose/lib/index.js:377:10 at /app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:32:5 at new Promise () at promiseOrCallback (/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:31:10) at Mongoose._promiseOrCallback (/app/node_modules/mongoose/lib/index.js:1220:10) at Mongoose.connect (/app/node_modules/mongoose/lib/index.js:376:20) at Object.init (/app/src/mongo.js:6:20) at Object. (/app/src/index.js:80:7) at Module._compile (node:internal/modules/cjs/loader:1105:14) Promise {

    yaah I feel dumb tbh

    bug 
    opened by Andorrrrr 3
  • Bump file-type from 17.1.2 to 17.1.3

    Bump file-type from 17.1.2 to 17.1.3

    Bumps file-type from 17.1.2 to 17.1.3.

    Release notes

    Sourced from file-type's releases.

    v17.1.3

    https://github.com/sindresorhus/file-type/compare/v17.1.2...v17.1.3

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

    You can disable automated security fix PRs for this repo from the Security Alerts page.

    dependencies 
    opened by dependabot[bot] 1
  • Lock file maintenance

    Lock file maintenance

    Mend Renovate

    This PR contains the following updates:

    | Update | Change | |---|---| | lockFileMaintenance | All locks refreshed |

    πŸ”§ This Pull Request updates lock files to use the latest dependency versions.


    Configuration

    πŸ“… Schedule: Branch creation - "before 5am on monday" (UTC), Automerge - At any time (no schedule defined).

    🚦 Automerge: Enabled.

    β™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    πŸ‘» Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


    • [ ] If you want to rebase/retry this PR, check this box

    This PR has been generated by Mend Renovate. View repository job log here.

    dependencies 
    opened by renovate[bot] 0
  • Update dependency eslint to v8.31.0

    Update dependency eslint to v8.31.0

    Mend Renovate

    This PR contains the following updates:

    | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | eslint (source) | 8.30.0 -> 8.31.0 | age | adoption | passing | confidence |


    Release Notes

    eslint/eslint

    v8.31.0

    Compare Source

    Features

    • 52c7c73 feat: check assignment patterns in no-underscore-dangle (#​16693) (Milos Djermanovic)
    • b401cde feat: add options to check destructuring in no-underscore-dangle (#​16006) (Morten Kaltoft)
    • 30d0daf feat: group properties with values in parentheses in key-spacing (#​16677) (Francesco Trotta)

    Bug Fixes

    • 35439f1 fix: correct syntax error in prefer-arrow-callback autofix (#​16722) (Francesco Trotta)
    • 87b2470 fix: new instance of FlatESLint should load latest config file version (#​16608) (Milos Djermanovic)

    Documentation

    Chores


    Configuration

    πŸ“… Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

    🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

    β™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    πŸ”• Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, check this box

    This PR has been generated by Mend Renovate. View repository job log here.

    dependencies 
    opened by renovate[bot] 0
  • Lock file maintenance

    Lock file maintenance

    Mend Renovate

    This PR contains the following updates:

    | Update | Change | |---|---| | lockFileMaintenance | All locks refreshed |

    πŸ”§ This Pull Request updates lock files to use the latest dependency versions.


    Configuration

    πŸ“… Schedule: Branch creation - "before 5am on monday" (UTC), Automerge - At any time (no schedule defined).

    🚦 Automerge: Enabled.

    β™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    πŸ‘» Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


    • [ ] If you want to rebase/retry this PR, check this box

    This PR has been generated by Mend Renovate. View repository job log here.

    dependencies 
    opened by renovate[bot] 0
  • Lock file maintenance

    Lock file maintenance

    Mend Renovate

    This PR contains the following updates:

    | Update | Change | |---|---| | lockFileMaintenance | All locks refreshed |

    πŸ”§ This Pull Request updates lock files to use the latest dependency versions.


    Configuration

    πŸ“… Schedule: Branch creation - "before 5am on monday" (UTC), Automerge - At any time (no schedule defined).

    🚦 Automerge: Enabled.

    β™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    πŸ‘» Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


    • [ ] If you want to rebase/retry this PR, check this box

    This PR has been generated by Mend Renovate. View repository job log here.

    dependencies 
    opened by renovate[bot] 0
  • Update dependency eslint to v8.30.0

    Update dependency eslint to v8.30.0

    Mend Renovate

    This PR contains the following updates:

    | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | eslint (source) | 8.29.0 -> 8.30.0 | age | adoption | passing | confidence |


    Release Notes

    eslint/eslint

    v8.30.0

    Compare Source

    Features

    Bug Fixes

    • 1a327aa fix: Ensure flat config unignores work consistently like eslintrc (#​16579) (Nicholas C. Zakas)
    • 9b8bb72 fix: autofix recursive functions in no-var (#​16611) (Milos Djermanovic)

    Documentation

    Chores


    Configuration

    πŸ“… Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

    🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

    β™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    πŸ”• Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, check this box

    This PR has been generated by Mend Renovate. View repository job log here.

    dependencies 
    opened by renovate[bot] 0
  • Update Node.js to v19.3.0

    Update Node.js to v19.3.0

    Mend Renovate

    This PR contains the following updates:

    | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | node (source) | 19.2.0 -> 19.3.0 | age | adoption | passing | confidence |


    Release Notes

    nodejs/node

    v19.3.0: 2022-12-14, Version 19.3.0 (Current), @​targos

    Compare Source

    Notable Changes
    Updated npm to 9.2.0

    Based on the list of guidelines we've established on integrating npm and node, here is a grouped list of the breaking changes with the reasoning as to why they fit within the guidelines linked above. Note that all the breaking changes were made in 9.0.0. All subsequent minor and patch releases after [email protected] do not contain any breaking changes.

    Engines

    Explanation: the node engines supported by npm@9 make it safe to allow npm@9 as the default in any LTS version of 14 or 16, as well as anything later than or including 18.0.0

    • npm is now compatible with the following semver range for node: ^14.17.0 || ^16.13.0 || >=18.0.0
    Filesystem

    Explanation: when run as root previous versions of npm attempted to manage file ownership automatically on the user's behalf. this behavior was problematic in many cases and has been removed in favor of allowing users to manage their own filesystem permissions

    • npm will no longer attempt to modify ownership of files it creates.
    Auth

    Explanation: any errors thrown from users having unsupported auth configurations will show npm config fix in the remediation instructions, which will allow the user to automatically have their auth config fixed.

    • The presence of auth related settings that are not scoped to a specific registry found in a config file is no longer supported and will throw errors.
    Login

    Explanation: the default auth-type has changed and users can opt back into the old behavior with npm config set auth-type=legacy. login and adduser have also been seperated making each command more closely match it's name instead of being aliases for each other.

    • Legacy auth types sso, saml & legacy have been consolidated into "legacy".
    • auth-type defaults to "web"
    • login and adduser are now separate commands that send different data to the registry.
    • auth-type config values web and legacy only try their respective methods, npm no longer tries them all and waits to see which one doesn't fail.
    Tarball Packing

    Explanation: previously using multiple ignore/allow lists when packing was an undefined behavior, and now the order of operations is strictly defined when packing a tarball making it easier to follow and should only affect users relying on the previously undefined behavior.

    • npm pack now follows a strict order of operations when applying ignore rules. If a files array is present in the package.json, then rules in .gitignore and .npmignore files from the root will be ignored.
    Display/Debug/Timing Info

    Explanation: these changes center around the display of information to the terminal including timing and debug log info. We do not anticipate these changes breaking any existing workflows.

    • Links generated from git urls will now use HEAD instead of master as the default ref.
    • timing has been removed as a value for --loglevel.
    • --timing will show timing information regardless of --loglevel, except when --silent.
    • When run with the --timing flag, npm now writes timing data to a file alongside the debug log data, respecting the logs-dir option and falling back to <CACHE>/_logs/ dir, instead of directly inside the cache directory.
    • The timing file data is no longer newline delimited JSON, and instead each run will create a uniquely named <ID>-timing.json file, with the <ID> portion being the same as the debug log.
    • npm now outputs some json errors on stdout. Previously npm would output all json formatted errors on stderr, making it difficult to parse as the stderr stream usually has logs already written to it.
    Config/Command Deprecations or Removals

    Explanation: install-links is the only config or command in the list that has an effect on package installs. We fixed a number of issues that came up during prereleases with this change. It will also only be applied to new package trees created without a package-lock.json file. Any install with an existing lock file will not be changed.

    • Deprecate boolean install flags in favor of --install-strategy.
    • npm config set will no longer accept deprecated or invalid config options.
    • install-links config defaults to "true".
    • node-version config has been removed.
    • npm-version config has been removed.
    • npm access subcommands have been renamed.
    • npm birthday has been removed.
    • npm set-script has been removed.
    • npm bin has been removed (use npx or npm exec to execute binaries).
    Other notable changes
    Commits

    Configuration

    πŸ“… Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

    🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

    β™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    πŸ”• Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, check this box

    This PR has been generated by Mend Renovate. View repository job log here.

    dependencies 
    opened by renovate[bot] 0
  • Lock file maintenance

    Lock file maintenance

    Mend Renovate

    This PR contains the following updates:

    | Update | Change | |---|---| | lockFileMaintenance | All locks refreshed |

    πŸ”§ This Pull Request updates lock files to use the latest dependency versions.


    Configuration

    πŸ“… Schedule: Branch creation - "before 5am on monday" (UTC), Automerge - At any time (no schedule defined).

    🚦 Automerge: Enabled.

    β™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    πŸ‘» Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


    • [ ] If you want to rebase/retry this PR, check this box

    This PR has been generated by Mend Renovate. View repository job log here.

    dependencies 
    opened by renovate[bot] 0
  • Update dependency prettier to v2.8.1

    Update dependency prettier to v2.8.1

    Mend Renovate

    This PR contains the following updates:

    | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | prettier (source) | 2.8.0 -> 2.8.1 | age | adoption | passing | confidence |


    Release Notes

    prettier/prettier

    v2.8.1

    Compare Source

    diff

    Fix SCSS map in arguments (#​9184 by @​agamkrbit)
    // Input
    $display-breakpoints: map-deep-merge(
      (
        "print-only": "only print",
        "screen-only": "only screen",
        "xs-only": "only screen and (max-width: #{map-get($grid-breakpoints, "sm")-1})",
      ),
      $display-breakpoints
    );
    
    // Prettier 2.8.0
    $display-breakpoints: map-deep-merge(
      (
        "print-only": "only print",
        "screen-only": "only screen",
        "xs-only": "only screen and (max-width: #{map-get($grid-breakpoints, " sm
          ")-1})",
      ),
      $display-breakpoints
    );
    
    // Prettier 2.8.1
    $display-breakpoints: map-deep-merge(
      (
        "print-only": "only print",
        "screen-only": "only screen",
        "xs-only": "only screen and (max-width: #{map-get($grid-breakpoints, "sm")-1})",
      ),
      $display-breakpoints
    );
    
    Support auto accessors syntax (#​13919 by @​sosukesuzuki)

    Support for Auto Accessors Syntax landed in TypeScript 4.9.

    (Doesn't work well with babel-ts parser)

    class Foo {
      accessor foo: number = 3;
    }
    

    Configuration

    πŸ“… Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

    🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

    β™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    πŸ”• Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, check this box

    This PR has been generated by Mend Renovate. View repository job log here.

    dependencies 
    opened by renovate[bot] 0
  • Lock file maintenance

    Lock file maintenance

    Mend Renovate

    This PR contains the following updates:

    | Update | Change | |---|---| | lockFileMaintenance | All locks refreshed |

    πŸ”§ This Pull Request updates lock files to use the latest dependency versions.


    Configuration

    πŸ“… Schedule: Branch creation - "before 5am on monday" (UTC), Automerge - At any time (no schedule defined).

    🚦 Automerge: Enabled.

    β™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    πŸ‘» Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


    • [ ] If you want to rebase/retry this PR, check this box

    This PR has been generated by Mend Renovate. View repository job log here.

    dependencies 
    opened by renovate[bot] 0
  • Dependency Dashboard

    Dependency Dashboard

    This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

    Awaiting Schedule

    These updates are awaiting their schedule. Click on a checkbox to get an update now.

    • [ ] Lock file maintenance

    Detected dependencies

    github-actions
    .github/workflows/codeql.yml
    • actions/checkout v3
    • github/codeql-action v2
    • github/codeql-action v2
    • github/codeql-action v2
    .github/workflows/eslint.yml
    • actions/checkout v3
    .github/workflows/node.js.yml
    • actions/checkout v3
    • actions/setup-node v3
    npm
    package.json
    • discord.js ^14.5.0
    • dotenv ^16.0.3
    • mongoose ^6.6.2
    • pino ^8.6.1
    • pino-pretty ^9.1.0
    • undici ^5.10.0
    • eslint 8.31.0
    • husky 8.0.2
    • lint-staged 13.1.0
    • node 19.3.0
    • prettier 2.8.1

    • [ ] Check this box to trigger a request for Renovate to run again on this repository
    dependencies 
    opened by renovate[bot] 0
Owner
Chasing my dreams.
null
Chatbot encargado de brindar informaciΓ³n a los alumnos de las preparatorias universidad autΓ³noma de Zacatecas o a las personas interesadas en ellas

Chatbot encargado de brindar informaciΓ³n a los alumnos de las preparatorias universidad autΓ³noma de Zacatecas o a las personas interesadas en ellas, en cual se implementarΓ‘ el anΓ‘lisis de sentimientos para la detecciΓ³n de algΓΊn indicio de problema de salud mental esto identificando mensajes positivos y negativos, al igual que los tipos de sentimientos como tristeza, felicidad, enfado, etc.

Eduardo Aguilar YÑñez 1 Dec 19, 2021
A discord bot made using discord.js and discord-player

Musx A custom discord bot that can play music in your server ?? Add the bot to your server If you are looking for a music bot for your Discord server

Shashwat Singh 4 Mar 28, 2022
About Discord bot draft that does not contain ready-made commands, compatible with discord.js v14. Create your own discord bot with this command handler.

discordJS-V14 About Discord bot draft that does not contain ready-made commands, compatible with discord.js v14. Create your own discord bot with this

Umut Bayraktar 36 Dec 28, 2022
This bot is a cool Discord bot made in discord.js using Node.JS

Anti-Crosspost Discord Bot This bot is a cool Discord bot made in discord.js using Node.JS. It detects when a user cross-posts a message in multiple c

Muhammad Usman Mithani 4 May 31, 2022
Cyrus is a Discord Bot with focus on Fun, Moderation, information and much more commands! Made it with Discord.js

Cyrus Cyrus is a Discord Bot with focus on Fun, Moderation, information and much more commands! Made it with Discord.js Invite : Click here Vote : Top

null 4 Dec 3, 2022
A Discord bot project made with the npm package discord.js version 14

A Discord bot project made with the npm package discord.js version 14 and it's job to manage mails on a server, and this project includes only one Database: Quick.db. This project also handles Slash commands.

T.F.A 33 Jan 6, 2023
A Simple Music Bot Made Using Discord-Player Package - (Beta)

Our Music Bot A Highly Powerful Music Bot Without Lavalink Which Is Gonna Have Setup, A Specific Text Channel For Bot Command Feature, And DJ System S

null 12 Dec 14, 2022
This is discord bot specifically made for Community Classroom

Classroom Monitor Bot This bot provides functionalities for 'Community Classroom' discord server. Community Classroom is an initiative 'for the studen

Kaiwalya Koparkar 0 Apr 10, 2022
A simple Facebook Messenger Bot like Discord Was Made By Me(CatalizCS) And My Brother SpermLord

MiraiBot A simple Facebook Messenger Bot made by me(CatalizCS) and my brother SpermLord. Report Bug Β· Request Feature Table of Contents Giα»›i thiệu HΖ°α»›

MiraiProject 123 Jan 2, 2023
Discord Music Made Simple.

boat-discord Inspiration This project was made because of the shutdown of Groovy and Rhythm. This project was inspired by the connecting two APIs work

Krish Gupta 5 Nov 9, 2022
An advanced discord bot made on Javascript with ❀ by FlyAbove

Discord JavaScript Bot An advanced discord bot made on Javascript with ❀ by FlyAbove Setup guide: Clone the repository and change config-example.json

FlyAbove 5 Apr 13, 2022
Discord bot made in javascript to play youtube music.

DJS O DJS Γ© um bot para Discord com a capacidade da criar playlists personalizadas, tendo como fonte a biblioteca de mΓΊsicas do Youtube. Frameworks e

Matheus Luiz 2 Aug 21, 2022
It is a discord bot bot which can play lofi song in different language 24/7. It has premium system and cool embed looks with buttons. It can play youtube songs, playlists. This bot code was made by Supreme#2401. It uses djs V12

Lofi-Radio-Music-Bot It is a discord bot bot which can play lofi song in different language 24/7. It has premium system and cool embed looks with butt

Diwas Atreya 89 Jan 2, 2023
This bot is made on latest discord.js V 13

discord.js-v13-bot This bot is made on latest discord.js V 13 THIS BOT IS MADE BY DAMON VISIT HIS SERVER HERE = https://discord.gg/djrPQaczPw THIS BOT

Damon 5 May 11, 2022
A multipurpose bot, a clan bot, a all in one bot. The one bot u need for ur server originally made as Milrato discord Bot and by Tomato6966.

Public Bot and Support Server! Invite the Public Version of this Bot so you don't need to host it by yourself or join my Discord server to get a custo

Tomato6966 472 Dec 25, 2022
A Discord Music Bot made with β™₯ by Ahad#3257

Discord-Music-Bot A Discord Music Bot made with β™₯ by Ahad#3257 How To Use? It's very simple just follow the steps written below. Run setup.bat to inst

Ahad 11 Oct 25, 2022
Web Application that represents a music player using the spotify API, React, JS, CSS, HTML, nodeJS, Firebase, material-ui, JSON and other technologies. Made by Yohan Hmaiti

Web Application that represents a music player using the spotify API, React, JS, CSS, HTML, nodeJS, Firebase, material-ui, JSON and other technologies. Made by Yohan Hmaiti

Yohan Hmaiti 2 Jan 8, 2022
Simple Minecraft Guild Bridge Made Using TypeScript DiscordX and Mineflayer.

Create a discord bot with TypeScript and Decorators! Content Demo Installation Use global command only Use CommonJS Remove rest api server Demo CodeSa

null 2 Aug 10, 2022
The official bot for Lewis Menelaws (TectTok). The bot is made by using Typescript. Feel free to contribute!

lewis-bot Prerequisites Create an application in Discord's developer portal. You need to add all the Intents and permissions. Then create a link in OA

Luka Hietala 2 Aug 11, 2022