Git Product home page Git Product logo

c3duan / swag-bot Goto Github PK

View Code? Open in Web Editor NEW
110.0 110.0 65.0 31.34 MB

My first ever discord bot using discord.js. The bot has a total of 77 commands, and it is capable of manipulating texts and images, analyzing data, searching information, and playing music. It has high level features like xp system, coins database, and spam detector.

License: Other

JavaScript 100.00%
discord-api discord-bot discord-js es6-javascript javascript mongodb-database mysql-database node-js restful-api

swag-bot's Introduction

Hi there, I am Arnold! ๐Ÿ‘‹

A Passionate Software Engineer (Ask me about anything here ๐Ÿ’ฌ)

Arnold's GitHub Stats Arnold's Most Used Languages

swag-bot's People

Contributors

c3duan avatar dependabot[bot] avatar stackneverflow 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar

swag-bot's Issues

lol-item API call giving undefined status code

kayn.DDragon.Item .list() .version(config.riot_api_version) .callback((error, list) => { if (error) { console.error(error); return message.reply('sorry an api error occurred, please try again.'); }

            const items = list.data;
            const item = Object.entries(items).find(weapon => weapon.name.toLowerCase() === itemName);
            if (!item) {
                return message.reply('sorry no such item exists, please try again.');
            }
            const embed = new Discord.RichEmbed()
                .setTitle(item.name)
                .setDescription(item.description.replace(/\s*\<.*?\>\s*/g, ''))
                .setThumbnail(`http://ddragon.leagueoflegends.com/cdn/${config.riot_api_version}/img/item/${item.image.full}`)
                .addField(`${item.plaintext} into ${item.into.join('/')}`)
                .addField('Purchase Price', item.gold.total, true)
                .addField('Sell Price', item.gold.sell, true);
                
            message.channel.reply(embed);
        });`

{ statusCode: undefined, url: 'https://ddragon.leagueoflegends.com/cdn/8.18.2/data/en_US/item.json', error: TypeError: Cannot read property 'statusCode' of null at kayn.DDragon.Item.list.version.callback }

Resume not working

Voice Channel remains silent after resuming the music playing, [potential problem with my resume command and resumeSong() function in music.js].

Possible Fixes:

  1. Instead of using dispatcher.resume() built-in function, use my own playMusic() function in music.js
  2. Possible bug in pause command despite stopping the music playing

Modular Refactor

I can clean up index.js by spreading your functions / events across multiple files and folders. For e.g. ready.js message.js could be in a folder called Events. I also noticed your not using dotenv which could make handling secrets more convenient. Let me know if you want this and I'll get started when I have time.

i can figure this :(

Music Bot not playing he is keeping say
added to queue: Tyga - Ayy Macarena (Official Video)

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.