From d66fef2b55f498f13bdea2f6245640d01838c0f7 Mon Sep 17 00:00:00 2001
From: Supositware <loic.bersier1@gmail.com>
Date: Fri, 8 Feb 2019 19:06:23 +0100
Subject: [PATCH] can use the random thingy

---
 commands/general/emotesay.js | 5 ++++-
 commands/general/tts.js      | 3 +++
 commands/general/ttsvc.js    | 3 +++
 3 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/commands/general/emotesay.js b/commands/general/emotesay.js
index 4abc529c..b19e6322 100644
--- a/commands/general/emotesay.js
+++ b/commands/general/emotesay.js
@@ -1,5 +1,6 @@
 const { Command } = require('discord-akairo');
 const emojiCharacters = require('../../emojiCharacters');
+const rand = require('../../rand.js');
 
 class EmotesayCommand extends Command {
 	constructor() {
@@ -25,7 +26,9 @@ class EmotesayCommand extends Command {
 		let text = args.text;
 		if (!text)
 			return;
-		
+	
+		text = rand.random(text, message);
+
 		message.delete();
 		let emojiArray = [];
 		for (let i = 0; i < text.length; i++)
diff --git a/commands/general/tts.js b/commands/general/tts.js
index 82c0923f..9b781f37 100644
--- a/commands/general/tts.js
+++ b/commands/general/tts.js
@@ -1,5 +1,6 @@
 const { Command } = require('discord-akairo');
 const textToSpeech = require('@google-cloud/text-to-speech');
+const rand = require('../../rand.js');
 const gclient = new textToSpeech.TextToSpeechClient();
 const fs = require('fs');
 
@@ -26,6 +27,8 @@ class TtsCommand extends Command {
 	async exec(message, args) {
 		let text = args.text;
 
+		text = rand.random(text, message);
+
 		// Construct the request
 		const request = {
 			input: { text: text },
diff --git a/commands/general/ttsvc.js b/commands/general/ttsvc.js
index 7b4799f2..6ca36da3 100644
--- a/commands/general/ttsvc.js
+++ b/commands/general/ttsvc.js
@@ -1,5 +1,6 @@
 const { Command } = require('discord-akairo');
 const textToSpeech = require('@google-cloud/text-to-speech');
+const rand = require('../../rand.js');
 const gclient = new textToSpeech.TextToSpeechClient();
 const fs = require('fs');
 
@@ -26,6 +27,8 @@ class TtsvcCommand extends Command {
 
 	async exec(message, args) {
 		let text = args.text;
+		
+		text = rand.random(text, message);
 
 		// Construct the request
 		const request = {