Bot now says hello when he connects to vojs
This commit is contained in:
parent
e40671a524
commit
dafa6978c8
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,2 +1,4 @@
|
|||||||
.env
|
.env
|
||||||
node_modules
|
node_modules
|
||||||
|
denim3001 - origo
|
||||||
|
nahravky
|
||||||
|
|||||||
8
app.js
8
app.js
@ -64,7 +64,6 @@ client.on('message', mes => {
|
|||||||
if (mes_prefix === prefix) {
|
if (mes_prefix === prefix) {
|
||||||
const celArgs = args.join(' ');
|
const celArgs = args.join(' ');
|
||||||
let corict;
|
let corict;
|
||||||
let vojs;
|
|
||||||
switch (komand) {
|
switch (komand) {
|
||||||
|
|
||||||
case 'vole':
|
case 'vole':
|
||||||
@ -140,7 +139,10 @@ client.on('message', mes => {
|
|||||||
if (!mes.content.includes('potichu')) mes.channel.send('<@&591306633196339261> vojs');
|
if (!mes.content.includes('potichu')) mes.channel.send('<@&591306633196339261> vojs');
|
||||||
|
|
||||||
channel.join()
|
channel.join()
|
||||||
.then(con => vypocitatCas(con));
|
.then(con => {
|
||||||
|
vypocitatCas(con);
|
||||||
|
con.play('./zvuky/nazdar.ogg');
|
||||||
|
});
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'wojs':
|
case 'wojs':
|
||||||
@ -157,7 +159,7 @@ client.on('message', mes => {
|
|||||||
case "tahni":
|
case "tahni":
|
||||||
case "táhni":
|
case "táhni":
|
||||||
case "vypadni":
|
case "vypadni":
|
||||||
vojs = mes.guild.voice;
|
const vojs = mes.guild.voice;
|
||||||
if (!vojs) {
|
if (!vojs) {
|
||||||
mes.channel.send('nejsem ve vojsu');
|
mes.channel.send('nejsem ve vojsu');
|
||||||
break;
|
break;
|
||||||
|
|||||||
BIN
zvuky/nazdar.ogg
Normal file
BIN
zvuky/nazdar.ogg
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user