Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const { SlashCommandBuilder } = require("discord.js");
- const ascii = require('ascii-art');
- module.exports = {
- data: new SlashCommandBuilder()
- .setName("ascii")
- .setDescription("Create Ascii Art")
- .addStringOption(option => option
- .setName("text")
- .setDescription("The text")
- .setRequired(true)
- ),
- async execute (interaction) {
- const text = interaction.options.getString("text");
- ascii.font(text, 'Doom', (err) => {
- interaction.reply(`\`\`\`${err}\`\`\``);
- });
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment