Giter VIP home page Giter VIP logo

ticket-bot's Introduction

Hi there ๐Ÿ‘‹

I'm Zhun Onn, a student from Kuala Lumpur, Malaysia who's currently pursuing a Diploma in IT.

โšก Quick Facts

  • ๐ŸŒฑ Iโ€™m always looking forward to learning and discovering new things
  • ๐Ÿ› ๏ธ I enjoy tinkering with computers, both hardware and software
  • ๐Ÿ“ฑ Daily driver: Samsung Galaxy M14 5G
  • ๐Ÿ’ฌ Talk to me regarding Free and Open Source Software
  • ๐ŸŽ‰ Fun fact: I play the drums ๐Ÿฅ

๐Ÿ“Š zhon12345's Analytics

zhon12345's github stats

zhon12345's top languages

๐Ÿงฐ Languages and Tools

Visual Studio Code Visual Studio HTML5 CSS3 JavaScript PHP C Python Java MySQL MongoDB Discord.js


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

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

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

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'
}

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
}

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
}```

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

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.

Commands

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

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...

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.