kj415j45/kjBot

View on GitHub
module/voice/main.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

global $Event, $Queue, $Text;

$lang = nextArg();
$hash = $Event['message_id'];

setCache($hash.'.txt', removeCQCode(removeEmoji($Text)));
exec("export LC_ALL=C.UTF-8 && export LANG=C.UTF-8 && cd ../storage/cache/ && gtts-cli -f {$hash}.txt -o {$hash}.mp3 --nocheck -l {$lang}"); //So fucking hardcore py3
$Queue[]= sendBack(sendRec(getCache($hash.'.mp3')));

?>