Git Product home page Git Product logo

bot-tutorial's Introduction

Profile Header

⚙️ Technologies & Tools

🌐 Connect with me

LinkedIn Instagram Discord

Profile views

🚀 The sky isn't the limit.

bot-tutorial's People

Contributors

leonnardom 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

Watchers

 avatar  avatar  avatar

bot-tutorial's Issues

Evento VipUtils.js - remover vip

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

To fazendo o tutorial do bot, to no ep #36, o comando bugou e eu resolvi dessa forma:

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.

YouTube API

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?

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.