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

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

    return False
示例#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
示例#4
0
async def getlastfmcheck():
    """ Get LastFM Check (Status) """
    lastcheck = REDIS.get('lastfmcheck')
    if lastcheck is True:
        return True

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

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

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

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