Replies: 1 comment
-
const Discord = require("discord.js");
const client = new Discord.Client();
const canvacord = require("canvacord");
client.on("ready", () => {
console.log("I'm online!");
});
client.on("message", async (message) => {
if (message.author.bot) return;
if (message.content === "!triggered") {
let avatar = message.author.displayAvatarURL({ dynamic: false, format: 'png' });
let image = await canvacord.Canvas.trigger(avatar);
let attachment = new Discord.MessageAttachment(image, "triggered.gif");
return message.channel.send(attachment);
}
});
client.login("Your_Bot_Token_here"); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
twlite
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How to make triggered command with canvacord?
Preview
Beta Was this translation helpful? Give feedback.
All reactions