1.4.3 • Published 2 years ago

discord-kurama v1.4.3

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

discord-kurama

npm

NPM

Rank Card

img

const Canvas = require("discord-kurama");
const Discord = require("discord.js");
const bot = new Discord.Client({ intents: 32767 });
let prefix = "!"

bot.on("ready", () => {
    console.log(bot.user.tag)
});

bot.on('messageCreate', async (message) => {
  if(message.content === `${prefix}rank`) {
    const Rank = await new Canvas.RankCard()
    .setGuild(message.guild) //The guild
    .setUser(message.author) //The member
    .setBackground("./BackgroundRank.jpg") //The background 
    .setLevel(10) //The level
    .setXP(100) //The XP
    .setColorBar("#971266") //The color bar
    .setColorLevel('#478002') //The color Level
    .setColorUser('#045788') //The color User
    .setAvatar(message.author.displayAvatarURL({ format: 'jpg'})) //The avatar user
    .setTag(message.author.tag) //The tag user
    .SaveCardRank() //Saved the card Rank

    return message.channel.send({ files: [new Discord.MessageAttachment(Rank.toBuffer(), "Rank.jpg")]})
  }
})

bot.login("TOKEN_BOT");

Welcome Card

img

const Canvas = require("discord-kurama");
const Discord = require("discord.js");
const bot = new Discord.Client({ intents: 32767 });

bot.on("ready", () => {
    console.log(bot.user.tag)
});

bot.on("guildMemberAdd", async member => {
  const Welcome = await new Canvas.WelcomeCard()
 .setGuild(member.guild) //The guild
 .setUser(member) //The user
 .setBackground("https://i.pinimg.com/originals/d0/a3/c3/d0a3c3ffade9804fad4075b13323d31d.png") //The background
 .setColorMember("#FFFFFF") //The color member
 .setColorText("#FFFFFF") //The color Text
 .languages("EN") //The language (FR-Français/EN-English)
 .setColorArc("#FFFFFF") //The color Arc
 .SaveCardWelcome() //Saved the card Welcome
  bot.channels.cache.get("CHANNEL_ID").send({files: [new Discord.MessageAttachment(Welcome.toBuffer(), "Welcome.jpg")]})
});

bot.login("TOKEN_BOT");

Goodbye Card

img

const Canvas = require("discord-kurama");
const Discord = require("discord.js");
const bot = new Discord.Client({ intents: 32767 });

bot.on("ready", () => {
    console.log(bot.user.tag)
});

bot.on('guildMemberRemove', async (member) => {
  const Goodbye = await new Canvas.GoodbyeCard()
  .setGuild(member.guild) //The guild
  .setUser(member) //The member
  .setAvatar(member.user.displayAvatarURL({ format: "jpg"})) //The avatar member
  .setTag(member.user.tag) //The tag member
  .setMemberCount(member.guild.memberCount) //Membercount
  .setBackground("https://i.pinimg.com/originals/d0/a3/c3/d0a3c3ffade9804fad4075b13323d31d.png") //The background
  .setColorMember("#FFFFFF") //The color Member
  .setColorText("#FFFFFF") //The color Text
  .languages("EN") //The language (FR-Français/EN-English)
  .setColorArc("#FFFFFF") //The color Arc
  .SaveCardGoodbye() //Saved the card Goodbyee
  bot.channels.cache.get("CHANNEL_ID").send({files: [new Discord.MessageAttachment(Goodbye.toBuffer(), "Goodbye.jpg")]})

})

bot.login("TOKEN_BOT");

Commands

img

const Kurama = require("discord-kurama");
const Discord = require("discord.js");
const bot = new Discord.Client({ intents: 32767 });
bot.discordTogether = new Kurama.LoadTogether(bot)
let prefix = "!"

bot.on("ready", () => {
    console.log(bot.user.tag)
});

bot.on('messageCreate', async (message) => {
 if (message.content === `${prefix}youtube`) {
    if(message.member.voice.channel) {
        client.discordTogether.createTogetherCode(message.member.voice.channel.id, 'youtube').then(async invite => { 
            return message.channel.send(`${invite.code}`); 
        });
    };
};
/*
Together activities :
youtube - youtubedev - poker - betrayal - fishing - chess - chessdev - lettertitle - wordsnack - doodlecrew - awkword - spellcast
*/
})

bot.login("TOKEN_BOT");
1.3.7

2 years ago

1.3.6

2 years ago

1.2.7

2 years ago

1.3.5

2 years ago

1.4.3

2 years ago

1.3.4

2 years ago

1.4.2

2 years ago

1.3.3

2 years ago

1.4.1

2 years ago

1.3.2

2 years ago

1.4.0

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.3.9

2 years ago

1.3.8

2 years ago

1.2.6

3 years ago

1.2.5

3 years ago

1.2.4

3 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.8

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago