top-gg / luca Goto Github PK
View Code? Open in Web Editor NEWLuca is the best bot you'll need for managing and informing members of the server
Luca is the best bot you'll need for managing and informing members of the server
Having a different Discord.on('message', function (message) {}
for each command isn't the best way of going about things. Instead, you should have only one message listener which uses if/else if/else to deal with the various commands. I have not run the bot, but reading the code, I assume it always replies with "Unknown command!" if the message starts with an "!":
Discord.on('message', function (message) {
if (message.content.startsWith('!')) {
return message.reply('Unknown command!');
}
});
Since all commands start with an "!", all commands will be unknown. The solution is if/else if/else:
// Determine if the message is a command before this point.
if(command == "hi"){
// Code
}
else if(command == "other-command"){
// Code
}
else{
// Reply with "unknown command"
}
Yardim botun botun yardim yardim botun botun yardim botun Seni seviyorum lanetSeni seviyorum lanetSeni seviyorum lanet yardim botun YARDIMMMM
Hi,
I see that thebot'stoken is hard coded into the files and visible when opening them. I think you should hide it to remove the risk of someone stealing the token to do something you wouldn't want.
Botum yardım?
YoU hAvE tOkEn iN bOt.Js. FIx NOW111
yardim
this ain't luca
i did a thonking that luca was closed source
Those tokens in that bot file are probs renewed anyways
What did I just stumble into xD
index.js has the token. Reset it.
Just..... just.... Why?? How...? You leaked your bot's token. In bot.js
. Please, fix it before your bot gets jacked.
-Nate
You may want to remove your bot token
I do appreciate the repository, but I did mean like "whaatttt"??? I don't know if this is supposed to be like a work of art of crime against humanity...
luca stinky
thats our issue
Luca should have a command token
that'll let everyone see and use the token
why is that i can edit a message to include a server invite but Luca only detects new messages with server invites and deletes them
the bois (aka @team role people) should make the bot also listen for messageEdit events in discord.js and delete messages with server invites if the sender has no role
give me smth pls for reporting this
would make a pull request if this bug ain't intentional
hi the bots needs node_modules void on github 🥵🥵🥵🥵🥶🥶🥶
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.