コード例 #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
ファイル: dbhelper.py プロジェクト: qlmyste/Telegram-UserBot
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
ファイル: dbhelper.py プロジェクト: cptmacp/Telegram-UserBot
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
ファイル: dbhelper.py プロジェクト: cptmacp/Telegram-UserBot
async def afk_reason():
    return strb(REDIS.get('is_afk'))
コード例 #26
0
ファイル: dbhelper.py プロジェクト: qlmyste/Telegram-UserBot
async def getlastfmcheck():
    lastcheck = REDIS.get('lastfmcheck')
    if lastcheck is True:
        return True

    return False
コード例 #27
0
ファイル: dbhelper.py プロジェクト: cptmacp/Telegram-UserBot
async def afk(reason):
    REDIS.set('is_afk', reason)
コード例 #28
0
ファイル: dbhelper.py プロジェクト: qlmyste/Telegram-UserBot
async def getuserID():
    return REDIS.get('userid')
コード例 #29
0
ファイル: dbhelper.py プロジェクト: cptmacp/Telegram-UserBot
async def no_afk():
    REDIS.delete('is_afk')
コード例 #30
0
ファイル: dbhelper.py プロジェクト: qlmyste/Telegram-UserBot
async def lfgetsong():
    return REDIS.get('lfsong').decode("UTF-8")