1.0.9 • Published 4 years ago

retradov.js v1.0.9

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

Installation

Windows

npm install retradov.js --save

Linux

sudo npm install retradov.js --save

Usage

const RetraClient = require("retradov.js");
const Discord = require('discord.js');
const bot = new Discord.Client()
const Retra = new RetraClient("Your Bot ID", "Your ID","Your Token Bot");
const prefix = "!"

bot.on("ready", async () => {
	console.log("Ready")
	})

bot.on("message", async (message) => {

	const msg = message.content.toLowerCase()
	const args = message.content.slice(prefix.length).trim().split(/ +/g)
	const cmd = args.shift().toLowerCase()

	if (message.channel.type === 'dm') return;
	if (!msg.startsWith(prefix)) return;

		if (cmd === "retra"){
			let client = args[0];
			if (isNaN(client)) return message.reply("Bukan Angka !");

			Retra.getBot(client).then(Client => {
				message.channel.send(`Bot Name : ${Client.botName}
					Prefix Bot : ${Client.prefix}
					Owner : ${Client.owner.tag}
					Library : ${Client.lib}
					Accepted : ${Client.accepted}`)
			})
		}
	});

	bot.login("Your Bot token goes here.")
	

Created by ~hanspro

1.0.9

4 years ago

1.0.8-beta

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago