cfxfinder
v1.1.15
Published
Gives you information on FiveM Servers
Downloads
48
Readme
CfxFinder
I'm sure you have heard of fivem before, if you haven't then why the hell are you here, this bot can show you the ip address and a bunch of info only using the cfx-ip.
Installation
npm install cfxfinder
const cfxfinder = require('cfxfinder')
cfxfinder({ interaction: interaction, cfx: 'ip here' })
Features
- Easy to use
- Clean and focused
- Actively maintained
Example
const cfxfinder = require('cfxfinder');
const Discord = require('discord.js');
client.on('message', async message => {
if(!message.content.startsWith(config.prefix) || message.author.bot) {
return;
}
const args = message.content.slice(config.prefix.length).trim().split(/ +/);
const command = args.shift().toLowerCase();
if(command === 'test') {
return message.channel.send('Test command works.');
} else if(command === 'cfxfinder') {
cfxfinder({interaction: interaction, cfx: 'ip here'})
} else if(command === 'help' || command === 'h') {
const embed = new Discord.MessageEmbed()
.setTitle('Help Menu')
.addFields(
{ name: 'test', value: 'Check the command handler', inline: true },
{ name: 'cfx', value: 'Use the cfx command', inline: true },
{ name: 'help', value: 'Show this list', inline: true }
)
.setColor('RANDOM')
.setTimestamp();
return message.channel.send({ embeds: [embed] });
}
});
client.login(config.token);
In Action
To-Do
- Optimizations
- Add JSDocs for easier development
- Add more information to the cfxfinder
- Add more customized options
Authors
- Magni - Creator# cfxfinder