Skip to content

Commit

Permalink
add a super basic now playing thing for streamers
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed May 28, 2019
1 parent 2deae2d commit 2015e2b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ Songs/

# Misc Ignores
crashinfo.txt
nowplaying.txt
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,11 @@ local t =
local endTime = os.time() + GetPlayableTime()
GAMESTATE:UpdateDiscordPresence(largeImageTooltip, detail, state, endTime)

local streamerstuff = "Now playing " .. GAMESTATE:GetCurrentSong():GetDisplayMainTitle() ..
" by " .. GAMESTATE:GetCurrentSong():GetDisplayArtist() ..
" in " .. GAMESTATE:GetCurrentSong():GetGroupName()
File.Write("nowplaying.txt", streamerstuff)

screen = SCREENMAN:GetTopScreen()
usingReverse = GAMESTATE:GetPlayerState(PLAYER_1):GetCurrentPlayerOptions():UsingReverse()
Notefield = screen:GetChild("PlayerP1"):GetChild("NoteField")
Expand Down

0 comments on commit 2015e2b

Please sign in to comment.