import sqlite3


def get_channel(guild):
    """Gets the notification channel specified by a guild

    Args:
        guild (int): ID of guild

    Returns:
        [int]: ID of text channel for notifications
    """
    
    conn = sqlite3.connect('jit.db')
    c = conn.cursor()
    
    c.execute('SELECT * FROM guild WHERE id = ?', (guild,))
    info = c.fetchall()
    return info[0][1]