Bot now says hello when he connects to vojs

This commit is contained in:
Histmy 2020-12-07 12:51:30 +01:00
parent e40671a524
commit dafa6978c8
3 changed files with 7 additions and 3 deletions

2
.gitignore vendored
View File

@ -1,2 +1,4 @@
.env
node_modules
denim3001 - origo
nahravky

8
app.js
View File

@ -64,7 +64,6 @@ client.on('message', mes => {
if (mes_prefix === prefix) {
const celArgs = args.join(' ');
let corict;
let vojs;
switch (komand) {
case 'vole':
@ -140,7 +139,10 @@ client.on('message', mes => {
if (!mes.content.includes('potichu')) mes.channel.send('<@&591306633196339261> vojs');
channel.join()
.then(con => vypocitatCas(con));
.then(con => {
vypocitatCas(con);
con.play('./zvuky/nazdar.ogg');
});
break;
case 'wojs':
@ -157,7 +159,7 @@ client.on('message', mes => {
case "tahni":
case "táhni":
case "vypadni":
vojs = mes.guild.voice;
const vojs = mes.guild.voice;
if (!vojs) {
mes.channel.send('nejsem ve vojsu');
break;

BIN
zvuky/nazdar.ogg Normal file

Binary file not shown.