Neverending Pun Machine

    translator-discord

    1.0.1 • Public • Published
    const discord = require("discord.js"),
          client = new discord.Client(),
          {token, prefix, base_lang} = require("./config.json")
    
    let Translator = require("translator-discord");
    Translator = new Translator()
    
    
    client.on("ready", () => console.log("Translator Bot is connected to Discord."));
    
    client.on("message", async (message) => {
    const translation = await Translator.autoTranslate(message, { from: "en"", to: "my"});
    if(translation) return message.channel.send(translation)
    })
    client.login(token)

    Keywords

    none

    Install

    npm i translator-discord

    DownloadsWeekly Downloads

    1

    Version

    1.0.1

    License

    ISC

    Unpacked Size

    3.66 kB

    Total Files

    3

    Last publish

    Collaborators

    • foughtyew