Code Monkey home page Code Monkey logo

ticket-bot's Introduction

๐ŸŽซ Ticket Bot

๐Ÿ“ Table of Contents

โ” About

This is a simple ticket bot created under 24 hours. The code is not thoroughly checked for errors so if you do find errors please report them by submitting a issue.

๐Ÿ’ฌ Commands

  • Info
Command Description
botinfo Displays indept information about the bot.
help Returns the help page, or one specific command info.
ping Returns the bot's latency and API ping.
uptime Check how long has the bot been online.
  • Owner
Command Description
eval Evaluate a specified JavaScript code.
restart Restarts the bot.
test Checks if the bot is working.
  • Ticket
Command Description
add Adds a member to a specified ticket.
close Closes the ticket.
delete Delete a specified ticket.
new Creates a new ticket.
open Re-opens a ticket.
remove Removes a member to a specified ticket.
transcript Trascripts a specified ticket.

๐Ÿ™‹โ€โ™‚๏ธ Contributing

If you would like to contribute, please fork this repository and submit a pull request! You can also join the Discord server and give me some feedback. Anyone is welcome to suggest new features or improve the code's quality!

๐Ÿ“„ License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

ticket-bot's People

Contributors

depfu[bot] avatar numselli avatar zhon12345 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

Watchers

 avatar  avatar  avatar

ticket-bot's Issues

help

how do I put it so that specific positions can see the channel?

Bot do not start


(node:2408) UnhandledPromiseRejectionWarning: Error [DISALLOWED_INTENTS]: Privileged intent provided is not enabled or whitelisted.
    at WebSocketManager.createShards (C:\Users\zEU.DESKTOP-H3MLTQG\Desktop\Ticket-Bot-main\node_modules\discord.js\src\client\websocket\WebSocketManager.js:258:15)
    at async Client.login (C:\Users\zEU.DESKTOP-H3MLTQG\Desktop\Ticket-Bot-main\node_modules\discord.js\src\client\Client.js:223:7)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:2408) 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:2408) [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.

Error

Hey I wanted to use the Code but if i start the Bot there comes this error:

DiscordAPIError(request.path, data, request.method, res.status);
            ^

DiscordAPIError: Invalid Form Body
embed.footer.icon_url: Scheme "null" is not supported. Scheme must be one of ('http', 'https').
embeds[0].footer.icon_url: Scheme "null" is not supported. Scheme must be one of ('http', 'https').
    at RequestHandler.execute (C:\Users\rober\Desktop\Nitro Gamer\Bots\Ticket-Bot-main\node_modules\discord.js\src\rest\RequestHandler.js:154:13)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async RequestHandler.push (C:\Users\rober\Desktop\Nitro Gamer\Bots\Ticket-Bot-main\node_modules\discord.js\src\rest\RequestHandler.js:39:14) {
  method: 'post',
  path: '/channels/888853309790748742/messages',
  code: 50035,
  httpStatus: 400
}```

Error In loading Slash Commands

Slash Commands does not seem to load even when they are given perms like the application perms and other perms in the servers

error

/home/runner/Ticket-Bot/node_modules/discord.js/src/rest/RequestHandler.js:154
throw new DiscordAPIError(request.path, data, request.method, res.status);
^

DiscordAPIError: Invalid Form Body
embed.footer.icon_url: Scheme "null" is not supported. Scheme must be one of ('http', 'https').
embeds[0].footer.icon_url: Scheme "null" is not supported. Scheme must be one of ('http', 'https').
at RequestHandler.execute (/home/runner/Ticket-Bot/node_modules/discord.js/src/rest/RequestHandler.js:154:13)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async RequestHandler.push (/home/runner/Ticket-Bot/node_modules/discord.js/src/rest/RequestHandler.js:39:14) {
method: 'post',
path: '/channels/985160642325532693/messages',
code: 50035,
httpStatus: 400
}

Commands

How i make the message to create a ticket in a channel
and how i enter commands

Close command

Hello,
I have used you close command 2 months ago and it worked fine, I got output and all:
image

But i started my bot again today after those 2 months and I got this error
image
wich is weird since the last time i used it and i didn't change anything its broken now

Am i just stupid and do i have to update my NPM and if i have to how? Or is there another thing u know about atm?

My code i use is in dutch but don't mind that :)
https://sourceb.in/I5CWV9qN9m

Hopefully you can help me

Kind regards
DarkWarrior

bot not turning on

Hi sorry to bother you but every time i try tostart the bot the terminal says it started but the bot wont turn online

ive checked the token and yet it dosent turn on

thank you

Permissions to view the ticket

From what I have seen, I have searched, but no way to set the permission that can see the tickets at their opening.

For the moment, it's only the people with the "ADMINISTRATOR" permission who can see the tickets...

TOKEN_INVALID (But is not)

if (!token || typeof token !== 'string') throw new Error('TOKEN_INVALID');
^

Error [TOKEN_INVALID]: An invalid token was provided.
at Client.login (C:\Users\Bengalson\3D Objects\Ticket-Bot-main\node_modules\discord.js\src\client\Client.js:206:52)
at Object. (C:\Users\Bengalson\3D Objects\Ticket-Bot-main\main.js:14:8)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:17:47 {
[Symbol(code)]: 'TOKEN_INVALID'
}

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.