Crie um bot para o FNF em Python com uma interface, o bot jogará a música selecionada…
- User
Crie um bot para o FNF em Python com uma interface, o bot jogará a música selecionada (através do JSON da música) com uma precisão muito alta, além disso, na interface, deve-se renderizar as setas da música no próprio programa.
[Como é um JSON de uma música: { "song": { "speed": 2.5, "stage": "stage", "player1": "murilo", "player2": "jaber", "events": [], "notes": [ { "gfSection": false, "altAnim": false, "sectionNotes": [ [ 0, 0, 0 ], [ 214.285714285714, 0, 0 ], [ 428.571428571429, 0, 0 ], [ 642.857142857143, 0, 0 ], [ 857.142857142857, 0, 0 ], [ 1071.42857142857, 0, 0 ], [ 1285.71428571429, 0, 0 ], [ 1500, 0, 0 ] ], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [ [ 1714.28571428571, 3, 0 ], [ 1928.57142857143, 3, 0 ], [ 2142.85714285714, 3, 0 ], [ 2357.14285714286, 3, 0 ], [ 2571.42857142857, 3, 0 ], [ 2785.71428571429, 3, 0 ], [ 3000, 3, 0 ], [ 3214.28571428571, 3, 0 ] ], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [ [ 3428.57142857143, 0, 0 ], [ 3642.85714285714, 0, 0 ], [ 3857.14285714286, 3, 0 ], [ 4071.42857142857, 3, 0 ], [ 4285.71428571429, 0, 0 ], [ 4500, 0, 0 ], [ 4714.28571428571, 3, 0 ], [ 4928.57142857143, 3, 0 ] ], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [ [ 5142.85714285714, 0, 0 ], [ 5357.14285714286, 3, 0 ], [ 5571.42857142857, 0, 0 ], [ 5785.71428571429, 3, 0 ], [ 6000, 0, 0 ], [ 6214.28571428571, 3, 0 ], [ 6428.57142857143, 0, 0 ], [ 6642.85714285714, 3, 0 ], [ 6535.71428571429, 2, 0 ], [ 6750, 1, 0 ] ], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [ [ 6857.14285714286, 0, 0 ], [ 6964.28571428571, 2, 0 ], [ 7071.42857142857, 2, 0 ], [ 7178.57142857143, 1, 0 ], [ 7285.71428571429, 0, 0 ], [ 7500, 2, 0 ], [ 7607.14285714286, 3, 0 ], [ 7714.28571428571, 3, 0 ], [ 7714.28571428571, 0, 0 ], [ 7821.42857142857, 3, 0 ], [ 7821.42857142857, 0, 0 ], [ 7928.57142857143, 0, 0 ], [ 8035.71428571429, 0, 0 ], [ 7928.57142857143, 3, 0 ], [ 8142.85714285714, 3, 0 ], [ 8035.71428571429, 3, 0 ], [ 8142.85714285714, 0, 0 ], [ 8250, 0, 0 ], [ 8357.14285714286, 0, 0 ], [ 8250, 3, 0 ], [ 8357.14285714286, 3, 0 ], [ 8464.28571428571, 0, 0 ], [ 8464.28571428571, 3, 0 ] ], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [ [ 8571.42857142857, 3, 0 ], [ 8571.42857142857, 0, 0 ], [ 8678.57142857143, 0, 0 ], [ 8785.71428571428, 0, 0 ], [ 8678.57142857143, 3, 0 ], [ 8785.71428571428, 3, 0 ], [ 8892.85714285714, 3, 0 ], [ 8892.85714285714, 0, 0 ], [ 9107.14285714286, 2, 1944 ], [ 8571.42857142857, 2, 0 ], [ 8678.57142857143, 1, 0 ], [ 8785.71428571428, 2, 0 ] ], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true }, { "gfSection": false, "altAnim": false, "sectionNotes": [], "bpm": 150, "sectionBeats": 4, "changeBPM": false, "mustHitSection": true } ], "gfVersion": "gf", "bpm": 140, "needsVoices": true, "song": "Bragar" } } ]
- Assistant