leonnardom / bot-tutorial Goto Github PK
View Code? Open in Web Editor NEWProjeto Finalizado/Descontinuado.
License: MIT License
Projeto Finalizado/Descontinuado.
License: MIT License
adiciona o .env.example com o necessário pra rodar o bot
Você deixou uma imagem PNG dentro da pasta para imagens JPG
Assisti a vídeo aula 50, onde você ensinou a criar um sistema para remover o vip (obrigado).
Vou fazendo junto com o vídeo, mas tive uma dificuldade porque o metodo dos meus eventos são diferentes do seu.
os seus eventos começam com
module.exports = class {
constructor(client) {
this.client = client;
}
async run() {
this.client.on("ready", async () => {
await this.VipFilter();
});
}
Assim não funcionando no meu bot, quando eu coloco até um console.log('Teste') ele não envia no console porque não ligou o evento, assim não removendo o vip.
Já o codigo do meu evento é este abaixo a maneira em que ele começa, e meio que eu não consegui adaptar o sistema dentro do meu codigo dava tudo errado e ficava com muitos erros.
Você pode da uma ajuda?
client.on("ready", () => { // Meus eventos começam assim
// codigo
});
ou assim
client.on('guildMemberAdd', async member => {
// codigo
})
ReminderUtils.js:
async run() {
this.client.on("ready", async () => {
await this.ReminderFilter();
});
}
antes ^, baixei ate o zip pra ter ceteza q n errei, a escrita do comando/reminder
async run() {
await this.ReminderFilter();
this.client.on("ready", async () => {
});
}
Ai fiz isso e funcionou, acho que e o this.client.on() que e bugado, ou estou louco mesmo? sla. mas se eu estiver errado, me corrige ae.
erro: if (typeof key !== 'string') throw new Error('The YouTube API key you provided was not a string.');
obs: Aonde eu coloco a key do YouTube?
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.