Skip to content

hichxm/crossword-for-twitch-play

Repository files navigation

CrossWord for twitch chat

Des mots fléches pour le chat d'une chaine twitch.

crossword

Installation

  1. Télécharger le zip ici
  2. Décompressez le zip
  3. Créer un fichier config.js
  4. Mettez les informations suivant en modifiant le "username" et le mot de passe:
    config = {
        //Twitch Identifiant (use oauth token)
        username: "",
        password: "oauth:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    
        //Twitch chanel
        channel: "#volca780"
    };
  5. Pour génerer le mot de passe connectez vous ici
  6. N'oubliez pas de mettre votre chaine
  7. Mettez grâce au plugin Browser Source disponible sur OBS le lien ver le fichier index.html
  8. Bon jeu.

Créer mon mot fleché

  1. Installer node.js ici
  2. N'oubliez pas npm
  3. Rendez-vous en ligne de commande sur le dossier que vous avez téléchargé.
    cd D:\lab\projects\crosswords
  4. Taper la commande
    npm install
  5. Modifier le fichier data\crosswords.json
    {
    	 "template": [
    	    [" ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " "],
    	    [" ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " "],
    	    [" ", " ", " ", "1", " ", " ", " ", " ", " ", " ", " ", " ", " "],
    	    [" ", " ", " ", "V", " ", " ", " ", " ", " ", " ", " ", " ", " "],
    	    [" ", "2", "C", "O", "U", "L", "E", "R", " ", " ", " ", " ", " "],
    	    [" ", " ", " ", "T", " ", " ", " ", " ", " ", " ", " ", " ", " "],
    	    [" ", " ", " ", "R", " ", " ", " ", " ", " ", " ", " ", " ", " "],
    	    [" ", " ", " ", "E", " ", " ", " ", " ", " ", " ", " ", " ", " "],
    	    [" ", " ", " ", "M", " ", " ", " ", " ", " ", " ", " ", " ", " "],
    	    [" ", " ", " ", "O", " ", " ", " ", " ", " ", " ", " ", " ", " "],
    	    [" ", " ", " ", "T", " ", " ", " ", " ", " ", " ", " ", " ", " "],
    	    [" ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " "],
    	    [" ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " "],
    	    [" ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " "],
    	    [" ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " "],
    	    [" ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " "],
    	    [" ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " "],
    	    [" ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " "],
    	    [" ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " "],
    	    [" ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " "]
    	],
    	"crosswords": [
    		[
    			["VOTREMOT", "Description de votre mot.", "POSITION DU NUMERO (ex: 3:4)", 
    				[
    					"POSITION DE LA PREMIERE LETTRE (ex: 4:4)",
    					"POSITION DE LA ... LETTRE (ex: 5:4)",
    					"POSITION DE LA ... LETTRE (ex: 6:4)",
    					"POSITION DE LA ... LETTRE (ex: 7:4)",
    					"POSITION DE LA ... LETTRE (ex: 8:4)",
    					"POSITION DE LA ... LETTRE (ex: 9:4)",
    					"POSITION DE LA ... LETTRE (ex: 10:4)",
    					"POSITION DE LA DERNIERE LETTRE (ex: 11:4)"
    				], false],
    				
    			["COULER", "Description de votre mot.", "POSITION DU NUMERO (ex: 5:2)", 
    				[
    					"POSITION DE LA PREMIERE LETTRE (ex: 5:3)",
    					"POSITION DE LA ... LETTRE (ex: 5:4)",
    					"POSITION DE LA ... LETTRE (ex: 5:5)",
    					"POSITION DE LA ... LETTRE (ex: 5:6)",
    					"POSITION DE LA ... LETTRE (ex: 5:7)",
    					"POSITION DE LA DERNIERE LETTRE (ex: 5:8)"
    				], false]
    		]
    	]
    }
  6. Tapé la commande:
    npm run dist
  7. Vous pouvez désormais lancer votre stream avec le nouveau fichier index.html

custom crossword

Profité bien !

About

Un mot fleché pour que tout le monde puisse jouer.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages