Socket
Socket
Sign inDemoInstall

discord-tts-ar

Package Overview
Dependencies
101
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    discord-tts-ar

Node.js module to make your discord bot talk


Version published
Weekly downloads
6
Maintainers
1
Created
Weekly downloads
 

Readme

Source

بكج يخلي البوت يتكلم باللغة العربية

Example


    const discordTTS=require("discord-tts-ar");

    client.on("message",msg=>{
        if(msg.content.startsWith("!say")){
            const args = msg.content.split(" ").slice(1).join(' ');
            if(!args)return msg.channel.send(`Type Something To Say (In Arabic)`);
            const broadcast = client.voice.createBroadcast();
            var channel = msg.member.voice.channel;
            if(!channel)return msg.channel.send(`You Have To Be In A Voice Channel First !`);
            channel.join().then(connection => {
                broadcast.play(discordTTS.getVoiceStream(args));
                const dispatcher=connection.play(broadcast);
            });
        }
    });

Keywords

FAQs

Last updated on 22 May 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc