Ejemplo n.º 1
0
async def getexception():
    """ Get if Spotify had exception before """
    exceptcheck = REDIS.get('exceptionexist')
    if exceptcheck is True:
        return True

    return False
Ejemplo n.º 2
0
async def getspotifycheck():
    """ Get Spotify Check (Status) """
    spotifychk = REDIS.get('spotifycheck')
    if spotifychk is True:
        return True

    return False
Ejemplo n.º 3
0
async def is_afk():
    """ Return if the user is AFK """
    to_check = REDIS.get('is_afk')
    if to_check:
        return True

    return False
Ejemplo n.º 4
0
async def getlastfmcheck():
    """ Get LastFM Check (Status) """
    lastcheck = REDIS.get('lastfmcheck')
    if lastcheck is True:
        return True

    return False
Ejemplo n.º 5
0
async def lfgetLogging():
    """ Get Logging for LastFM """
    loggingup = REDIS.get('lflog')
    if loggingup is True:
        return True

    return False
Ejemplo n.º 6
0
async def setlastfmcheck(lastfmcheck):
    """ Set LastFM Check (Status) """
    REDIS.set('lastfmcheck', lastfmcheck)
Ejemplo n.º 7
0
async def setuserID(userid):
    """ Set UserID for LastFM """
    REDIS.set('userid', userid)
Ejemplo n.º 8
0
async def lfsetartist(artist):
    """ Set LastFM Artist """
    REDIS.set('lfartist', artist)
Ejemplo n.º 9
0
async def lfsetsong(song):
    """ Set LastFM Song """
    REDIS.set('lfsong', song)
Ejemplo n.º 10
0
async def afk_reason():
    """ Get AFK Reason """
    return REDIS.get('is_afk').decode("UTF-8")
Ejemplo n.º 11
0
async def lfgetLogging():
    loggingup = REDIS.get('lflog')
    if loggingup is True:
        return True

    return False
Ejemplo n.º 12
0
async def sfgetsong():
    """ Get Spotify Song """
    return REDIS.get('sfsong').decode("UTF-8")
Ejemplo n.º 13
0
async def lfgetsong():
    """ Get LastFM Song """
    return REDIS.get('lfsong').decode("UTF-8")
Ejemplo n.º 14
0
async def spotifycheck(spotifychck):
    """ Set Spotify Check (Status) """
    REDIS.set('spotifycheck', spotifychck)
Ejemplo n.º 15
0
async def exceptionexist(olexception):
    """ Set if Spotify had exception before """
    REDIS.set('exceptionexist', olexception)
Ejemplo n.º 16
0
async def sfsetsong(song):
    """ Set Spotify Song """
    REDIS.set('sfsong', song)
Ejemplo n.º 17
0
async def sfsetartist(artist):
    """ Set Spotify Artist """
    REDIS.set('sfartist', artist)
Ejemplo n.º 18
0
async def no_afk():
    """ Remove AFK Reason and state """
    REDIS.delete('is_afk')
Ejemplo n.º 19
0
async def lfsetLogging(log):
    """ Set Logging for LastFM """
    REDIS.set('lflog', log)
Ejemplo n.º 20
0
async def getuserID():
    """ Get UserID for LastFM """
    return REDIS.get('userid')
Ejemplo n.º 21
0
async def lfgetartist():
    """ Get LastFM Artist """
    return REDIS.get('lfartist').decode("UTF-8")
Ejemplo n.º 22
0
async def is_afk():
    to_check = REDIS.get('is_afk')
    if to_check:
        return True
    else:
        return False
Ejemplo n.º 23
0
async def sfgetartist():
    """ Get Spotify Artist """
    return REDIS.get('sfartist').decode("UTF-8")
Ejemplo n.º 24
0
async def afk(reason):
    """ Set AFK Reason """
    REDIS.set('is_afk', reason)
Ejemplo n.º 25
0
async def afk_reason():
    return strb(REDIS.get('is_afk'))
Ejemplo n.º 26
0
async def getlastfmcheck():
    lastcheck = REDIS.get('lastfmcheck')
    if lastcheck is True:
        return True

    return False
Ejemplo n.º 27
0
async def afk(reason):
    REDIS.set('is_afk', reason)
Ejemplo n.º 28
0
async def getuserID():
    return REDIS.get('userid')
Ejemplo n.º 29
0
async def no_afk():
    REDIS.delete('is_afk')
Ejemplo n.º 30
0
async def lfgetsong():
    return REDIS.get('lfsong').decode("UTF-8")