Hi there, I am Arnold! ๐
A Passionate Software Engineer (Ask me about anything here ๐ฌ)
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
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 }
Voice Channel remains silent after resuming the music playing, [potential problem with my resume command and resumeSong() function in music.js].
Possible Fixes:
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.
Music Bot not playing he is keeping say
added to queue: Tyga - Ayy Macarena (Official Video)
so?
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.