Skip to content

WemXPro/tickets-discord-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tickets Module Discord bot

You can self host the ticket bot for branding purposes, to do so you are required to have knowledge of how discord bots work.

Install

  1. Upload the bot to your server
  2. $ npm update
  3. Copy ".env.example" to ".env" and set all the values
  4. Run the bot using sh run.sh and make sure its starts successfully
  5. In your tickets module edit file Tickets/Jobs/TicketCreateWebhook.php

Replace URL

 http://beta.wemx.net:3000/webhook

With

http://your-servers-ip:3000/webhook

Database

Self hosting requires you to setup your own database to store the synced servers inside.

Create a new database for example "tickets" with a table called "servers" with the following columns: The table has to have the following values

  • id (int AI)
  • discord_server_id (string)
  • protocol Enum: https://, http://
  • domain: (string)
  • api_key (string)
  • updatedAt (timestamp)
  • createdAt (timestamp)

About

Discord bot for the tickets module

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •