GithubHelp home page GithubHelp logo

jaspermayonesarchivebox / discord-bot Goto Github PK

View Code? Open in Web Editor NEW
60.0 8.0 33.0 24.42 MB

The open-source & multipurpose Discord bot with the goal to be the single needed bot for any server.

Home Page: https://heptagrambotproject.com

License: Eclipse Public License 2.0

Shell 0.08% TypeScript 99.92%
discord discord-bot discord-js discordjs heptagrambot projectheptagram bot node nodejs node-js open-source opensource heptagram discord-server discord-js-bot discord-js-bots contributions-welcome hacktoberfest typescript

discord-bot's Introduction

github-header-image-2 Open Source Helpers

Version Documentation License: Size Stars Language

Welcome to the Heptagram Bot repo! πŸ‘‹

Welcome to the Heptagram Bot Repo!

Heptagram Bot is designed to be the all-in-one, open-source Discord bot that handles all your server needs. No more needing a music bot, mod bot, rules bot, etc... Now you only need one!

Find out more and invite the bot at our official website

🀝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page. If you are interested in contributing, we ask that you take a look at the contributing guide before you contribute.

Discord Server

Heptagram has a community Discord server. You can join it at https://discord.gg/yHFQWNtNDt. In the server you can suggest features, talk with developers, and test out the bot for yourself. If you have made an Open Source Contribution, you can claim all kinds of perks. You can find out more about this in the contributing guide.

Author

πŸ‘€ J-dogcoder

Show your support

Give a ⭐️ if this project helped you!

πŸ“ License

Copyright Β© 2022 J-dogcoder.
This project is licensed under the Eclipse Public License 2.0.

discord-bot's People

Contributors

allcontributors[bot] avatar anadeore avatar anubhav06 avatar arun-kc avatar ashlyndev avatar ceelo777 avatar datreeio[bot] avatar dependabot-preview[bot] avatar dependabot[bot] avatar helloimalastair avatar imgbotapp avatar jaspermayone avatar jehincastic avatar lejhandg avatar meerkat25 avatar mert18 avatar midouwebdev avatar monzilnepali avatar mooaaaa avatar net-tech avatar panquesito7 avatar renovate-bot avatar renovate[bot] avatar schmelto avatar squarecylinder avatar thinkverse avatar ting-c avatar virgildotcodes avatar xebec19 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

discord-bot's Issues

Proper Bot Logging

The idea would be for bot events to be logged in MongoDB, as well as a separate database with logs for every guild.
And then, guild owners can also specify a discord channel they want their guild events logged in. Ideally, we could tap into discord's audit log so heptagram can display events that happened that it didn't do.

BUG: [SHARDING_READY_TIMEOUT]: Shard 0's Client took too long to become ready.

(node:69059) UnhandledPromiseRejectionWarning: Error [SHARDING_READY_TIMEOUT]: Shard 0's Client took too long to become ready.
at Timeout.onTimeout (/Users/jasper/Desktop/Coding/Heptagram/node_modules/discord.js/src/sharding/Shard.js:163:16)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
(Use node --trace-warnings ... to show where the warning was created)
(node:69059) 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:69059) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will termin

Readme Update

Switch license in readme to Mozilla Public License Version 2.0

Bug with admin commands

My error message

(```
node:75058) UnhandledPromiseRejectionWarning: ReferenceError: ADMIN_ROLE_ID is not defined
at Object.execute (/Users/jasper/Desktop/Coding/Heptagram/commands/Moderation/clear.js:9:44)
at Client. (/Users/jasper/Desktop/Coding/Heptagram/main.js:40:32)
at Client.emit (events.js:315:20)
at MessageCreateAction.handle (/Users/jasper/Desktop/Coding/Heptagram/node_modules/discord.js/src/client/actions/MessageCreate.js:31:14)
at Object.module.exports [as MESSAGE_CREATE] (/Users/jasper/Desktop/Coding/Heptagram/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (/Users/jasper/Desktop/Coding/Heptagram/node_modules/discord.js/src/client/websocket/WebSocketManager.js:384:31)
at WebSocketShard.onPacket (/Users/jasper/Desktop/Coding/Heptagram/node_modules/discord.js/src/client/websocket/WebSocketShard.js:444:22)
at WebSocketShard.onMessage (/Users/jasper/Desktop/Coding/Heptagram/node_modules/discord.js/src/client/websocket/WebSocketShard.js:301:10)
at WebSocket.onMessage (/Users/jasper/Desktop/Coding/Heptagram/node_modules/ws/lib/event-target.js:132:16)
at WebSocket.emit (events.js:315:20)
(Use node --trace-warnings ... to show where the warning was created)
(node:75058) 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:75058) [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.

Warn System

For tracking warns and based on the number of warns performing an action

Make usable for multiple servers.

Hey there everyone! As we get closer and closer to launch, (official date coming soon) there are lots and lots of things to do. I have a mammoth task that needs to be taken on by someone (if not a few people). This task is making sure the bot can be used on multiple servers. This means making variables such as the prefix, admin role id, etc, configurable for just that guild. The kind of idea I have played around with, is that each guild will have its own "profile" or "config" in the database, and that when a new guild adds the bot, it DM's the owner to have them run a setup command. The setup command will only be able to run if it hasn’t already, and will create a "guild profile" and ask them things like if they already have an admin role, user role, and muted role. If they have them, they can mention it so we can get the ID to put in the guild's config/profile. If they don't, the bot will auto-create one for them. I have pushed a commit to the branches staged and master that gets this started. (sort of) I would love it if someone wants to take this on with me. (Multiple people could team up if they wanted to.)

BUG: ticket.js perms

This Bug has several things that need to be fixed

  • Change channel.setParent's value in ticket.js on line 6 to a value in the config.json file
  • switch perm on line 28 to a hardcoded value in the config.json

Failed to run using the command 'node main.js'

🐞 Bug Report

Describe the bug

Failed to run using the command 'node main.js'
*


Is this a regression?


To Reproduce

  1. run the command on the root directory 'node main.js'

Error location: Heptagram/commands/Utilitys/help.js:34
Error message:
const name = args[0].toLowerCase();
^^^^^

SyntaxError: Unexpected token 'const'


Expected behaviour

Should run without an error message

Media prove


Your environment

  • OS:
  • Node version:
  • Npm version:
  • Browser name and version:

Additional context

NSFW commands throw error

(node:722) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'channel' of undefined
    at Object.execute (/Users/jasper/Desktop/Coding/Heptagram/commands/nsfw/ass.js:11:17)
    at module.exports (/Users/jasper/Desktop/Coding/Heptagram/events/client/message.js:12:34)
    at Client.emit (events.js:327:22)
    at MessageCreateAction.handle (/Users/jasper/Desktop/Coding/Heptagram/node_modules/discord.js/src/client/actions/MessageCreate.js:31:14)

Commit on the staged branch.

πŸ› Bug: "Hack" command and Clyde command not working

on the run of command, receives an error.

(node:37813) UnhandledPromiseRejectionWarning: TypeError: Cannot read property '0' of undefined
    at Object.execute (/Users/jasper/Desktop/Coding/Projects/ProjectHeptagram/Heptagram/commands/Fun/hack.js:7:13)
    at module.exports (/Users/jasper/Desktop/Coding/Projects/ProjectHeptagram/Heptagram/events/guild/message.js:16:34)
    at Client.emit (events.js:327:22)
    at MessageCreateAction.handle (/Users/jasper/Desktop/Coding/Projects/ProjectHeptagram/Heptagram/node_modules/discord.js/src/client/actions/MessageCreate.js:31:14)
    at Object.module.exports [as MESSAGE_CREATE] (/Users/jasper/Desktop/Coding/Projects/ProjectHeptagram/Heptagram/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
    at WebSocketManager.handlePacket (/Users/jasper/Desktop/Coding/Projects/ProjectHeptagram/Heptagram/node_modules/discord.js/src/client/websocket/WebSocketManager.js:384:31)
    at WebSocketShard.onPacket (/Users/jasper/Desktop/Coding/Projects/ProjectHeptagram/Heptagram/node_modules/discord.js/src/client/websocket/WebSocketShard.js:444:22)
    at WebSocketShard.onMessage (/Users/jasper/Desktop/Coding/Projects/ProjectHeptagram/Heptagram/node_modules/discord.js/src/client/websocket/WebSocketShard.js:301:10)
    at WebSocket.onMessage (/Users/jasper/Desktop/Coding/Projects/ProjectHeptagram/Heptagram/node_modules/ws/lib/event-target.js:132:16)
    at WebSocket.emit (events.js:315:20)
    at Receiver.receiverOnMessage (/Users/jasper/Desktop/Coding/Projects/ProjectHeptagram/Heptagram/node_modules/ws/lib/websocket.js:835:20)
    at Receiver.emit (events.js:315:20)
    at Receiver.dataMessage (/Users/jasper/Desktop/Coding/Projects/ProjectHeptagram/Heptagram/node_modules/ws/lib/receiver.js:437:14)
    at Receiver.getData (/Users/jasper/Desktop/Coding/Projects/ProjectHeptagram/Heptagram/node_modules/ws/lib/receiver.js:367:17)
    at Receiver.startLoop (/Users/jasper/Desktop/Coding/Projects/ProjectHeptagram/Heptagram/node_modules/ws/lib/receiver.js:143:22)
    at Receiver._write (/Users/jasper/Desktop/Coding/Projects/ProjectHeptagram/Heptagram/node_modules/ws/lib/receiver.js:78:10)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:37813) 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:37813) [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.

More "fun" commands

If someone wanted to add a few more fun commands that would be cool.

Here is a list of potential ideas:

  • an economy system
  • pets system
  • games (taco shack, etc)
  • animal pictures
  • sayings/motivational quotes

Proper documentation.

If anyone wants to write up propper nice looking documentation, that would be amazing. I would be happy to coordinate around web hosting etc, just let me know

Setup Command:

Be able to set up the bot with roles, permissions, ect.

Test

pls ignore. just testing

Fix ping command

Currently returns pong. Would be nice to get an actual ping time.

πŸ›Bug: Hug command and slap command not working

(node:46092) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'mentions' of undefined
at Object.execute (/Users/jasper/Desktop/Coding/Projects/ProjectHeptagram/Heptagram/commands/Fun/hug.js:6:29)
at module.exports (/Users/jasper/Desktop/Coding/Projects/ProjectHeptagram/Heptagram/events/guild/message.js:15:34)
at Client.emit (events.js:327:22)
at MessageCreateAction.handle (/Users/jasper/Desktop/Coding/Projects/ProjectHeptagram/Heptagram/node_modules/discord.js/src/client/actions/MessageCreate.js:31:14)
at Object.module.exports [as MESSAGE_CREATE] (/Users/jasper/Desktop/Coding/Projects/ProjectHeptagram/Heptagram/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (/Users/jasper/Desktop/Coding/Projects/ProjectHeptagram/Heptagram/node_modules/discord.js/src/client/websocket/WebSocketManager.js:384:31)
at WebSocketShard.onPacket (/Users/jasper/Desktop/Coding/Projects/ProjectHeptagram/Heptagram/node_modules/discord.js/src/client/websocket/WebSocketShard.js:444:22)
at WebSocketShard.onMessage (/Users/jasper/Desktop/Coding/Projects/ProjectHeptagram/Heptagram/node_modules/discord.js/src/client/websocket/WebSocketShard.js:301:10)
at WebSocket.onMessage (/Users/jasper/Desktop/Coding/Projects/ProjectHeptagram/Heptagram/node_modules/ws/lib/event-target.js:132:16)
at WebSocket.emit (events.js:315:20)
at Receiver.receiverOnMessage (/Users/jasper/Desktop/Coding/Projects/ProjectHeptagram/Heptagram/node_modules/ws/lib/websocket.js:835:20)
at Receiver.emit (events.js:315:20)
at Receiver.dataMessage (/Users/jasper/Desktop/Coding/Projects/ProjectHeptagram/Heptagram/node_modules/ws/lib/receiver.js:437:14)
at Receiver.getData (/Users/jasper/Desktop/Coding/Projects/ProjectHeptagram/Heptagram/node_modules/ws/lib/receiver.js:367:17)
at Receiver.startLoop (/Users/jasper/Desktop/Coding/Projects/ProjectHeptagram/Heptagram/node_modules/ws/lib/receiver.js:143:22)
at Receiver._write (/Users/jasper/Desktop/Coding/Projects/ProjectHeptagram/Heptagram/node_modules/ws/lib/receiver.js:78:10)
(Use node --trace-warnings ... to show where the warning was created)
(node:46092) 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:46092) [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.

Ower/System Role commands

The Idea is for a set group of people (defined by their user ids) to be able to go into any server with the bot in it and perform "Maintenence" and "diagnostics" commands.

commands such as:

  • shard restart(once shards are implemented (issue #20))
  • bot restart
  • bot shutdown
  • shard shutdown (is this a thing)
  • diagnostic reports

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.