1.0.9 • Published 3 years ago
midori-api v1.0.9
Midori-API - A wholesome updated api mainly focused on meme
CHANGES
- Minor Bug Fixed
- Added Rick And Morty
FEATURES
- MEME
- NEKO
- RICK AND MORTY CHARACTER(s)
Installation
npm i midori-api
Setting up
const { Client, Intents, Collection } = require("discord.js");
const { readdirSync } = require("fs");
const client = new Client({ intents: [Intents.FLAGS.GUILDS] })
require("dotenv").config()
//HANDLER
client.commands = new Collection(readdirSync("./commands").map(cmd => (cmd = require(`./commands/${cmd}`), [cmd.data.name, cmd])))
for (const event of readdirSync("./events")) client.on(event.split(".")[0], require(`./events/${event}`).bind(null))
client.login("BOT_TOKEN") //https://discord.com/developers/applications
Made with ❤
Devlopers
- HJ GAMING
- ITSHYPER