Changes Supporting Dockerization
This commit is contained in:
parent
4b71fe1b02
commit
668e57d2f6
7
.gitignore
vendored
Normal file → Executable file
7
.gitignore
vendored
Normal file → Executable file
@ -8,9 +8,6 @@ auth.json
|
||||
node_modules/*
|
||||
!node_modules/.gitkeep
|
||||
|
||||
# And package details that will be created when aquiring said libraries
|
||||
package-lock.json
|
||||
|
||||
# Create the necessary Sounds folder
|
||||
sounds/*
|
||||
!sounds/.gitkeep
|
||||
@ -18,3 +15,7 @@ sounds/*
|
||||
# remove all other unnecessary stuff
|
||||
*.jpg
|
||||
sounds_flac/
|
||||
|
||||
# Docker Image Creation Files
|
||||
Dockerfile
|
||||
.dockerignore
|
||||
|
||||
7
bot.js
Normal file → Executable file
7
bot.js
Normal file → Executable file
@ -109,7 +109,7 @@ client.on('message', async message => {
|
||||
// TODO: this try block optional?
|
||||
try {
|
||||
// Test if there is a file at the expected path
|
||||
if (fs.existsSync(soundPath) && message.member.voice.channel) {
|
||||
if (message.member.voice.channel && fs.existsSync(soundPath)) {
|
||||
console.log(`Sound '${message.content}' issued by ${message.author.tag} ${message.author.id}`);
|
||||
// Join the Voice Channel of the author
|
||||
const connection = await message.member.voice.channel.join();
|
||||
@ -130,9 +130,10 @@ client.on('message', async message => {
|
||||
// Otherwise process commands
|
||||
if (message.content === "!help" ) {
|
||||
console.log(`!help issued by ${message.author.tag} ${message.author.id}`);
|
||||
var response = 'ZeSkypeBot v6.0.5 \'black pepper\'\n';
|
||||
var response = 'ZeSkypeBot v6.0.6 \'black pepper\'\n';
|
||||
response += 'Original by moosecrap#5953 for Skype, Remade by Weegee#6402 for Discord\n';
|
||||
response += 'Changelog:\n';
|
||||
response += 'v6.0.6 Changes to !play regex in pursuit of playing at timestamps\n';
|
||||
response += 'v6.0.5 Added feedback for cases where ytdl crashes\n';
|
||||
response += 'v6.0.3 Changed !play regex per user feedback and counterexamples\n';
|
||||
response += 'v6.0.2 Removed response to voiceless sound commands, for being too spammy\n';
|
||||
@ -144,7 +145,7 @@ client.on('message', async message => {
|
||||
response += 'Commands:\n';
|
||||
response += '~ stop any sounds in progress and disconnect from voice\n';
|
||||
response += '!help print this message\n';
|
||||
response += 'To play Sounds, first join a voice channel then send a message in the text chat with the name of the sound.\n';
|
||||
response += 'To play Sounds, first join a voice channel then send a message in the text chat with the name of the sound\n';
|
||||
response += '!play [youtube url] play a youtube video over chat\n';
|
||||
message.channel.send(response);
|
||||
return;
|
||||
|
||||
0
markov/skypebot.dat
Normal file → Executable file
0
markov/skypebot.dat
Normal file → Executable file
0
node_modules/.gitkeep
generated
vendored
Normal file → Executable file
0
node_modules/.gitkeep
generated
vendored
Normal file → Executable file
2350
package-lock.json
generated
Executable file
2350
package-lock.json
generated
Executable file
File diff suppressed because it is too large
Load Diff
0
package.json
Normal file → Executable file
0
package.json
Normal file → Executable file
0
sounds/.gitkeep
Normal file → Executable file
0
sounds/.gitkeep
Normal file → Executable file
Loading…
x
Reference in New Issue
Block a user