async def getexception(): """ Get if Spotify had exception before """ exceptcheck = REDIS.get('exceptionexist') if exceptcheck is True: return True return False
async def getspotifycheck(): """ Get Spotify Check (Status) """ spotifychk = REDIS.get('spotifycheck') if spotifychk is True: return True return False
async def is_afk(): """ Return if the user is AFK """ to_check = REDIS.get('is_afk') if to_check: return True return False
async def getlastfmcheck(): """ Get LastFM Check (Status) """ lastcheck = REDIS.get('lastfmcheck') if lastcheck is True: return True return False
async def lfgetLogging(): """ Get Logging for LastFM """ loggingup = REDIS.get('lflog') if loggingup is True: return True return False
async def setlastfmcheck(lastfmcheck): """ Set LastFM Check (Status) """ REDIS.set('lastfmcheck', lastfmcheck)
async def setuserID(userid): """ Set UserID for LastFM """ REDIS.set('userid', userid)
async def lfsetartist(artist): """ Set LastFM Artist """ REDIS.set('lfartist', artist)
async def lfsetsong(song): """ Set LastFM Song """ REDIS.set('lfsong', song)
async def afk_reason(): """ Get AFK Reason """ return REDIS.get('is_afk').decode("UTF-8")
async def lfgetLogging(): loggingup = REDIS.get('lflog') if loggingup is True: return True return False
async def sfgetsong(): """ Get Spotify Song """ return REDIS.get('sfsong').decode("UTF-8")
async def lfgetsong(): """ Get LastFM Song """ return REDIS.get('lfsong').decode("UTF-8")
async def spotifycheck(spotifychck): """ Set Spotify Check (Status) """ REDIS.set('spotifycheck', spotifychck)
async def exceptionexist(olexception): """ Set if Spotify had exception before """ REDIS.set('exceptionexist', olexception)
async def sfsetsong(song): """ Set Spotify Song """ REDIS.set('sfsong', song)
async def sfsetartist(artist): """ Set Spotify Artist """ REDIS.set('sfartist', artist)
async def no_afk(): """ Remove AFK Reason and state """ REDIS.delete('is_afk')
async def lfsetLogging(log): """ Set Logging for LastFM """ REDIS.set('lflog', log)
async def getuserID(): """ Get UserID for LastFM """ return REDIS.get('userid')
async def lfgetartist(): """ Get LastFM Artist """ return REDIS.get('lfartist').decode("UTF-8")
async def is_afk(): to_check = REDIS.get('is_afk') if to_check: return True else: return False
async def sfgetartist(): """ Get Spotify Artist """ return REDIS.get('sfartist').decode("UTF-8")
async def afk(reason): """ Set AFK Reason """ REDIS.set('is_afk', reason)
async def afk_reason(): return strb(REDIS.get('is_afk'))
async def getlastfmcheck(): lastcheck = REDIS.get('lastfmcheck') if lastcheck is True: return True return False
async def afk(reason): REDIS.set('is_afk', reason)
async def getuserID(): return REDIS.get('userid')
async def no_afk(): REDIS.delete('is_afk')
async def lfgetsong(): return REDIS.get('lfsong').decode("UTF-8")