lamergameryt / ticket-discord-bot

πŸ˜„ Easy to use Ticket Bot for Discord.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ticket Discord Bot

Create discord tickets with ease

License GitHub code size in bytes JDA Version GitHub followers Made With Java

Ticket Discord Bot is a discord bot which has one purpose: creating tickets.

This is a very simple discord bot which can be integrated in your code without credits & asking for permission.

How to use this?

This bot was intended to be integrated into your own discord bot. You can still use it as an independent bot though.

To compile the bot into a jar file you will require the following dependencies:

  • JDA (By dv8tion) - Recommended version is 4.2.0+. Anything below that version is unsupported and the bot may not function as expected.
  • JDA-Utilities (By Jagrosh) - Recommended version is 3.0.5+.
  • Maven - Can be downloaded from https://maven.apache.org/download.cgi

To compile the bot, clone this repository and head to the directory which contains the repository. After navigating to that directory, execute the following command:

mvn clean install

After its execution, a new directory should be formed with the name target. There will be two files in that folder named TicketBot-<version>.jar and TicketBot-<version>-jar-with-dependencies.jar.

To execute the bot, open a terminal in the target folder and execute java -jar TicketBot-<version>-jar-with-dependencies.jar.

Note: The bot will not work if you compile it without editing the configuration file. To learn how to edit the config file, read the Configuration section.

Configuration

The bot can be configured with the help of a configuration file. This is located in the package xyz.lamergameryt.TicketBot and is called Config.java. The configuration file is documented properly and it contains the usage of the variables in it.

The bot will not work if the BOT_TOKEN and OWNER_ID values are not set properly. It is highly recommended that you spend some time configuring the bot before using it.

Commands

I'll assume the prefix of the bot is set to the default prefix of + while listing the commands. If you change this prefix then use that string as the prefix of the bot.

This bot has the following commands:

  • +new - Create a new ticket.
  • +close - Close an open ticket.
  • +add <user-id> - Add an user to a ticket.
  • +remove <user-id> - Remove an user from a ticket.

The add and remove commands only support user ids for now but future support for other means of adding / removing an user from a ticket will be added.

License

This plugin is licensed under the MIT License. See the LICENSE file in the top distribution directory for the full license text.

Liked it?

Thank you for reading through this!

If you liked it, consider giving a star to this project and following me on GitHub as I have put my ❀ and a lot of effort into this.

About

πŸ˜„ Easy to use Ticket Bot for Discord.

License:MIT License


Languages

Language:Java 100.0%