jbilcke-hf HF staff commited on
Commit
d71e088
·
1 Parent(s): 2b32286

skip this theme

Browse files
Files changed (3) hide show
  1. database.json +1 -1
  2. scripts/audio1.sh +1 -0
  3. src/twitchBot.mts +6 -7
database.json CHANGED
@@ -4,7 +4,7 @@
4
  "sequences": [
5
  {
6
  "sequenceId": "d344637d-247f-4dd1-8700-02741f36a94a",
7
- "skip": false,
8
  "lastGenerationAt": "",
9
  "videoPrompt": "3D animation, blender renderings, simulations showcasing a variety of different effects",
10
  "audioPrompt": "electronic goal music from the 90s",
 
4
  "sequences": [
5
  {
6
  "sequenceId": "d344637d-247f-4dd1-8700-02741f36a94a",
7
+ "skip": true,
8
  "lastGenerationAt": "",
9
  "videoPrompt": "3D animation, blender renderings, simulations showcasing a variety of different effects",
10
  "audioPrompt": "electronic goal music from the 90s",
scripts/audio1.sh CHANGED
@@ -18,6 +18,7 @@ while true; do
18
  for (( i=0; i<${#files[@]}; i++ )); do
19
  echo "file '${files[$i]}'" >> channel_1_audio_tmp.txt
20
  done
 
21
  mv channel_1_audio_tmp.txt channel_1_audio.txt
22
  fi
23
 
 
18
  for (( i=0; i<${#files[@]}; i++ )); do
19
  echo "file '${files[$i]}'" >> channel_1_audio_tmp.txt
20
  done
21
+
22
  mv channel_1_audio_tmp.txt channel_1_audio.txt
23
  fi
24
 
src/twitchBot.mts CHANGED
@@ -35,14 +35,13 @@ client.on("PRIVMSG", (msg) => {
35
 
36
  if (msg.channelName === channel && words.includes(`@${fullCaseName}`)) {
37
  console.log("We have been directly mentioned")
38
- // client.say(channel, "yes, my lord?")
39
- // TODO: we should use a chatbot eg. HuggingChat to add prompts to the queue
40
 
41
- if (command === "!queue") {
42
- client.say(channel, `there are ${promptQueue.length} prompts in the queue`)
43
- } else if (command === "!add") {
44
- client.say(channel, "adding prompts to the queue isn't supported yet")
45
- }
 
46
  }
47
  })
48
 
 
35
 
36
  if (msg.channelName === channel && words.includes(`@${fullCaseName}`)) {
37
  console.log("We have been directly mentioned")
 
 
38
 
39
+ client.say(channel, "yes, my lord?")
40
+ // TODO: we should use a chatbot eg. HuggingChat to add prompts to the queue
41
+ } else if (command === "!queue") {
42
+ client.say(channel, `there are ${promptQueue.length} prompts in the queue`)
43
+ } else if (command === "!add") {
44
+ client.say(channel, "adding prompts to the queue isn't supported yet")
45
  }
46
  })
47