0.0.5 • Published 6 years ago

meep-api v0.0.5

Weekly downloads
2
License
Apache-2.0
Repository
github
Last release
6 years ago

Meep API

const Meep = require("meep-api");
client.API = new Meep.Client("your-token-here");

If you want to use the developer endpoint, you'll need to add { dev: true } to your new Meep Client like so.

client.API = new Meep.Client("your-token-here", { dev: true });

Command Based Endpoints

Achievement

await message.channel.send(new MessageAttachment(
  await client.API.achievement(message.author.displayAvatarURL({ format: "png", size: 32 }), args.join(" ")),
  "achievement.png"));

Bat Slap

await message.channel.send(new MessageAttachment(
  await client.API.batSlap(message.author.displayAvatarURL({ format: "png", size: 128 }),
    message.mentions.users.first().displayAvatarURL({ format: "png", size: 128 })),
  "batslap.png"));

Wanted

await message.channel.send(new MessageAttachment(
  await client.API.wanted(message.author.displayAvatarURL({ format: "png", size: 128 })),
  "wanted.png"));

pls

await message.channel.send(new MessageAttachment(
  await client.API.pls((message.mentions.members.first() || message.member).displayName),
  "pls.png"));

Greeting/Farewell Based Endpoints

Gearz Welcome Placed inside your GuildMemberAdd event

await client.API.welcome("gearz", member.user.bot, member.user.displayAvatarURL({ format: "png", size: 128 }), member.user.tag,`${member.guild.name}#${member.guild.memberCount}`);
0.0.5

6 years ago

0.0.2-dev

6 years ago

0.0.1

6 years ago