sebastiaanyn / open-sourcebot Goto Github PK
View Code? Open in Web Editor NEWAn open source Discord bot created and run by TheSourceCode community.
Home Page: http://open.sourcebot.net
License: MIT License
An open source Discord bot created and run by TheSourceCode community.
Home Page: http://open.sourcebot.net
License: MIT License
Let's discuss the language choice for the bot here. Some options would be:
Please comment which language you would prefer, and the library you would want to use.
Describe the bug
https://github.com/The-SourceCode/Open-SourceBot/blob/63d2ca63e403fa496582f6f37a2bb3ee4f6ef46b/src/handler/Handler.js#L183
https://github.com/The-SourceCode/Open-SourceBot/blob/63d2ca63e403fa496582f6f37a2bb3ee4f6ef46b/src/handler/Handler.js#L195
When running command, any specified to it aliases will not work in any way.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It should execute same code that !help does
Additional context
Add any other context about the problem here.
Let's discuss the bot features here.
Provide as much information as possible, so we can get a good understanding of the ideas and opinions.
Describe the bug
A clear and concise description of what the bug is.
When i try to add new feature (games)
const { Feature } = require("../../../handler");
module.exports = class extends Feature {
constructor() {
super("Игры", {
name: "Игры",
commands: ["rolldice","flipcoin","slots"],
events: []
});
}
};
how can i organize commands by category in help.js?
Describe the bug
The code above silently ignores errors thrown while trying to instantiate a Command or Event class. The try/catch clause can't determine whether the error is thrown because CommandOrEvent
is not a class, or because it gets errors while instantiating it.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
There should be an error to show the Command is invalid, and it shouldn't silently ignore them.
RichEmbed is not a constructor
TypeError: RichEmbed is not a constructor at module.exports.run (/home/pixel/Desktop/Fl4nnelBot/modules/general/commands/help.js:93:19) at Client.client.on (/home/pixel/Desktop/Fl4nnelBot/handler/Handler.js:209:19) at Client.emit (events.js:198:13) at MessageCreateAction.handle (/home/pixel/Desktop/Fl4nnelBot/node_modules/discord.js/src/client/actions/MessageCreate.js:31:14) at Object.module.exports [as MESSAGE_CREATE] (/home/pixel/Desktop/Fl4nnelBot/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32) at WebSocketManager.handlePacket (/home/pixel/Desktop/Fl4nnelBot/node_modules/discord.js/src/client/websocket/WebSocketManager.js:386:31) at WebSocketShard.onPacket (/home/pixel/Desktop/Fl4nnelBot/node_modules/discord.js/src/client/websocket/WebSocketShard.js:436:22) at WebSocketShard.onMessage (/home/pixel/Desktop/Fl4nnelBot/node_modules/discord.js/src/client/websocket/WebSocketShard.js:293:10) at WebSocket.onMessage (/home/pixel/Desktop/Fl4nnelBot/node_modules/ws/lib/event-target.js:125:16) at WebSocket.emit (events.js:198:13)
Is your feature request related to a problem? Please describe.
You should easily be able to find the commands that the bot has. The current help command isn't well suited for this task.
Describe the solution you'd like
There should be a help command which can take in zero or one parameter.
If the command is used without any parameters it should return a message (embed?) listing all features, followed by the commands apart of the feature. If a command is not apart of a feature it should also be included separately.
If the command is used with a parameter a message should be returned showing the aliases, info, and usage of the command and whether it's only available inside guilds.
If you want to implement this feature request, please open a draft pull request which references this issue.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.