Giter Club home page Giter Club logo

xenon-bot-javascript-edition's Introduction

Xenon Bot JavaScript Edition

non-official xenon bot JavaScript edition , a bot for backup discord servers and more features .

Warning:

Intellectual rights & the original edition credits belong to Magic Bots Original Bot: https://github.com/Magic-Bots/xenon

How to use ? :

NOTE: BE SURE YOU INSTALLED NODE.JS & NPM NPM WILL AUTOMATICALLY INSTALLED WHEN YOU INSTALL NODE.JS

Step 1: Installing The Modules Modules:

  • fs
  • discord.js
  • djs-commands
  • approximate-number
  • hastebin-gen
npm i discord.js@11 fs hastebin-gen approximate-number djs-commands --save

Step 2: Configure The Bot Open config.json and paste the bot token and type the prefixes , the default prefixes are x! and !x you can change them if you want ..

Step 3: Running The Bot open terminal/powershell or command prompt in the directory that the bot files in , and then type:

node index.js

Issues ?

Found an issue ? create an issue in the repository and I will fix the problem when I can.

Soon x!build command .

Using Glitch.com Host ?

If you will host this in glitch.com host then just remix my project Link: https://glitch.com/edit/#!/remix/xenonbot-remix

Last Updates:

  • Some problems have been solved

xenon-bot-javascript-edition's People

Contributors

hideakiatsuyo avatar revenge977 avatar zihadmahiuddin 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

xenon-bot-javascript-edition's Issues

Error...

(node:1352) DeprecationWarning: Guild#createChannel: Create channels with an options object instead of separate parameters
(node:1352) UnhandledPromiseRejectionWarning: DiscordAPIError: Missing Permissions
at C:\Users\ryury\OneDrive za\XenonCrack\XenonCrack\node_modules\discord.js\src\client\rest\RequestHandlers\Sequential.js:85:15
at C:\Users\ryury\OneDrive - za\XenonCrack\XenonCrack\node_modules\snekfetch\src\index.js:215:21
at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:1352) 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: 2)
(node:1352) [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.

This error occurs when you give the robot the role of administrator and the role of the highest level.
And I don't think the channel's rights are applied, and the role is created redundant.

Proposal

If you wish, you can optimize the bot by putting backups using sqlite.

Purge

purge command is not working

Help me PLZ

Debugger listening on ws://127.0.0.1:20674/11835bce-d422-4c17-b086-ed1334a4657b
For help, see: https://nodejs.org/en/docs/inspector
Debugger attached.
Found 7 files to load!

CommandHandler.js:25
Error: ENOENT: no such file or directory, open './Data/backups.json'
at Object.openSync (fs.js:457:3)
at Object.readFileSync (fs.js:359:35)
at Object. (c:\Users\Ezori\Documents\Bot2\Commands\backup.js:5:29)
at Module._compile (internal/modules/cjs/loader.js:1158:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
at Module.load (internal/modules/cjs/loader.js:1002:32)
at Function.Module._load (internal/modules/cjs/loader.js:901:14)
at Module.require (internal/modules/cjs/loader.js:1044:19)
at require (internal/modules/cjs/helpers.js:77:18)
at CommandHandler._loadFrom (c:\Users\Ezori\Documents\Bot2\node_modules\djs-commands\CommandHandler.js:28:26)

Hmm

It doesnt load channel permissions and the roles are not loaded in order :( . But all around a solid bot.

bug

(node:38560) UnhandledPromiseRejectionWarning: DiscordAPIError: Invalid Form Body
type: Value must be one of (0, 2, 4, 6).
at C:\Users\user\Downloads\Xenon-Bot-JavaScript-Edition-master\Xenon-Bot-JavaScript-Edition-master\node_modules\discord.js\src\client\rest\RequestHandlers\Sequential.js:85:15
at C:\Users\user\Downloads\Xenon-Bot-JavaScript-Edition-master\Xenon-Bot-JavaScript-Edition-master\node_modules\snekfetch\src\index.js:215:21
at processTicksAndRejections (internal/process/task_queues.js:93:5)
(Use node --trace-warnings ... to show where the warning was created)
(node:38560) 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: 2)
(node:38560) [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.

Multiple Backups

How can I make it so if the user made multiple backups, there would be a multiple backup id's will be shown in the user's id in the backups.json

I saw that even if you make multiple backups, it will only save 1 id which is the last id / last backup command generated id. I want to make a list command, and limit the backups you can make

d.js v12 broke backup command

Like the title, i think d.j2 v12 somehow return TypeError: Cannot read property 'hasOwnProperty' of undefined on backup command. Any solution yet ?

help me

Found 7 files to load!

Loading command: 'backup'
Loading command: 'help'
Loading command: 'info'
Loading command: 'invite'
Loading command: 'leave'
Loading command: 'ping'
Loading command: 'tiers'
Done loading commands!
Ready !
(node:11772) UnhandledPromiseRejectionWarning: TypeError: RichEmbed is not a constructor
at module.exports.run (C:\Users\PC\Downloads\Xenon-Bot-JavaScript-Edition-master (1)\Xenon-Bot-JavaScript-Edition-master\Commands\help.js:13:29)
at Client. (C:\Users\PC\Downloads\Xenon-Bot-JavaScript-Edition-master (1)\Xenon-Bot-JavaScript-Edition-master\index.js:26:13)
at Client.emit (events.js:223:5)
at MessageCreateAction.handle (C:\Users\PC\Downloads\Xenon-Bot-JavaScript-Edition-master (1)\Xenon-Bot-JavaScript-Edition-master\node_modules\discord.js\src\client\actions\MessageCreate.js:31:14)
at Object.module.exports [as MESSAGE_CREATE] (C:\Users\PC\Downloads\Xenon-Bot-JavaScript-Edition-master (1)\Xenon-Bot-JavaScript-Edition-master\node_modules\discord.js\src\client\websocket\handlers\MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (C:\Users\PC\Downloads\Xenon-Bot-JavaScript-Edition-master (1)\Xenon-Bot-JavaScript-Edition-master\node_modules\discord.js\src\client\websocket\WebSocketManager.js:386:31)
at WebSocketShard.onPacket (C:\Users\PC\Downloads\Xenon-Bot-JavaScript-Edition-master (1)\Xenon-Bot-JavaScript-Edition-master\node_modules\discord.js\src\client\websocket\WebSocketShard.js:435:22)
at WebSocketShard.onMessage (C:\Users\PC\Downloads\Xenon-Bot-JavaScript-Edition-master (1)\Xenon-Bot-JavaScript-Edition-master\node_modules\discord.js\src\client\websocket\WebSocketShard.js:293:10)
at WebSocket.onMessage (C:\Users\PC\Downloads\Xenon-Bot-JavaScript-Edition-master (1)\Xenon-Bot-JavaScript-Edition-master\node_modules\ws\lib\event-target.js:120:16)
at WebSocket.emit (events.js:223:5)
(node:11772) 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(). (rejection id: 1)
(node:11772) [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.

How do I fix this error?

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.