Skip to content

henkelmax/simple-voice-chat-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Voice Chat Discord Support Bot

The Simple Voice Chat Discord Bot.

Functionality

The bot initially sends a message in the support channel (This will get deleted and re-sent after the bot restarted).

Users can then press the Get Support button and the bot will create a thread and notifies the user.

In the meantime users get prompted to enter a support key in their support thread.

After providing the support key, the user gets prompted to choose their issue.

After selecting an issue from the dropdown, the user gets additional information about the selected issue, as well as a set of questions, specifically tailored for the chosen issue.

Until now the user wasn't able to write any messages in the thread.

After answering the questions, the user needs to press the Confirm button.

This will trigger a message in the notification channel.

Now support staff can join the thread and answer the questions.

In the case, the user selected the wrong issue, support can change the questions by typing the command /issue <issue-type>. This will trigger the same messages, that would have been sent when a user selects an issue from the dropdown.

If you want the user to be able to write messages before completing the process, you can enter the /unlock command.

You can lock threads by entering the /close command (This does the same thing as the user pressing the I don't need support anymore button). This will create a message in the thread, letting the user know who locked the thread.

There will also be an update of the original message in the notification channel, notifying staff that the thread doesn't need looking into again.

Admins can also clean up the thread database by locking all threads that are older than a week by entering the /cleanup command.

Additional Notes

  • The bot doesn't keep track of locked threads anymore, so please don't re-open them.
  • Normal users shouldn't have permission to write messages in the support channel.

Environment Variables

Variable Default value Description
TOKEN Required The discord bot token
DB_URL localhost:27017 The MongoDB connection URL
DB_NAME discordbot The name of the MongoDB database
SUPPORT_CHANNEL_ID Required The support channel ID
SUPPORT_THREAD_CHANNEL_ID Required The support thread channel ID
COMMON_ISSUES_CHANNEL_ID Required The common issues channel ID
SERVER_HOSTING_CHANNEL_ID Required The server hosting channel ID
SUPPORT_NOTIFICATION_CHANNEL Required The notification channel ID
SUPPORT_ROLE Required The support role