Go to file Use this template
2024-02-09 22:59:35 +01:00
commands/admin bugfix: default permissions for members to use commands 2024-02-09 22:41:58 +01:00
events bugfix: attach to same parent 2024-02-09 22:59:35 +01:00
models reformat: auto format 2024-02-08 21:11:56 +01:00
.env.example clean up: using unprotected sqlite database 2024-01-29 14:59:52 +01:00
.eslintignore Initial commit 2024-01-26 13:28:02 +00:00
.eslintrc.json Initial commit 2024-01-26 13:28:02 +00:00
.gitignore clean up: using unprotected sqlite database 2024-01-29 14:59:52 +01:00
.prettierignore Initial commit 2024-01-26 13:28:02 +00:00
.prettierrc Initial commit 2024-01-26 13:28:02 +00:00
database.js handle message/channel deletion 2024-02-07 21:02:37 +01:00
deploy.js refactor: autoformat with prettier 2024-02-06 16:18:06 +01:00
index.js refactor: autoformat with prettier 2024-02-06 16:18:06 +01:00
package-lock.json Merge branch 'sync' from 'https://git.baipyr.us/Baipyrus/DiscordJS-Template.git' 2024-02-06 16:09:02 +01:00
package.json version upgrade: first alpha version 2024-02-09 19:56:12 +01:00
README.md better note format 2024-02-09 21:39:19 +01:00
shared.js refactor: auto format 2024-02-09 19:42:27 +01:00

Getting started

Discord utilizes different types of commands to interface with bots. The following explanations aim to explain these types.

Slash Commands

Simple text-based commands. Can be entered in any Text-Based-Channel.

Prefix message with a "Slash" (/) and begin typing the name of the command! This prefix and the styling as a code snippet will be used to highlight Slash Commands in this message.

For clarification, this will also highlight command options as "Slash Command only" by prefixing them with an underscore (_)

Context Menu Commands

"One click" commands. Listed under context (right click) menus, under the group "Apps".

Ideally, clicking on Users or Messages, you can apply any type of command with the press of a button. Comes with the downside of lacking further input capabilities.

Under the list of names of any given command, there may be a quoted string. These are meant to highlight context menu capabilities for the current command, by showcasing the commands name in the quote.

Reaction/Self Roles

Name

/self_roles

Description

Enables users to self assign roles by reacting to a message, utilizing a bot for automated tasks

Subcommands

create

Full names:

  • /self_roles create

Description:

The bot writes a message with the given contents in the current channel, and then registers said message for self roles

Options:

  • _text: String

register

Full names:

  • /self_roles register
  • "Register self roles"

Description:

Fetches any existing message and registers it for self roles directly

Options:

  • _id: Discord Message ID

remove

Full names:

  • /self_roles remove
  • "Remove self roles"

Description:

Fetches any existing message, looks if it is registered for self roles and then unregisters it

Options:

  • _id: Discord Message ID

add

Full names:

  • /self_roles add
  • "Add role emoji pair"

Description:

Adds a new Role-Emoji-Pair to a given message. Reacting to said message with the given emoji yields the given role

Options:

  • _id: Discord Message ID
  • role: Discord Role
  • emoji: Unicode [or if accessible, a custom] Emoji

Automated tasks

Registered Messages will automatically:

  • be unregistered during deletion
  • be edited in case the bot owns said message. It will explain the given Role-Emoji-Pairs every time a new pair is added.

Custom Voice Chat

Name

/custom_vc

Description

Enables users to create a custom, temporary voice chat with full control over it

Subcommands

create

Full names:

  • /custom_vc create

Description: The bot creates a new voice channel with the given name and registers said channel for custom VC creation

Options:

  • _name: String

register

Full names:

  • /custom_vc register

Description: Fetches any existing voice channel and registers it for custom VC creation directly

Options:

  • _id: Discord Channel ID

remove

Full names:

  • /custom_vc remove

Description: Fetches any voice channel, looks if it is registered for custom VC creation and then unregisters it

Options:

  • _id: Discord Channel ID

Automated tasks

Registered Voice Channels will automatically:

  • be unregistered during deletion
  • be deleted once all users left said channel
  • grant full control over permissions, only within said channel, to the author

TO-DO List:

Note

These lists can and will easily be appended to in the future. Any and all feedback is greatly appreciated!

Planned features

  • Automated alerts/reminders
  • Removing pairs on reaction/self roles

Quirks/Bugs

  • Users are currently unable to overwrite permissions of temporarily generated custom VCs

Changes

None