@client.event
async def on_message(message):
    if message.author.bot:
        return None
    if message.content.startswith('!Hi'):
        channel = message.channel
        (await channel.send('Welcome!'))
    if message.content.startswith('!Qadjoke'):
        channel = message.channel
        arrResult = Result(my_database.all_docs, include_docs=True)
        dbNum = my_database.doc_count()
        num1 = (nqrng.random_number() % dbNum)
        num2 = (nqrng.random_number() % dbNum)
        num = ((num1 * num2) % dbNum)
        result = arrResult[num][0]['doc']['Qdad']
        print(f'{num} is randnum, result is {result}')
        (await channel.send(f'{result}'))
@client.event
async def on_message(message):
    if message.author.bot:
        return None
    if message.content.startswith('!Hi'):
        channel = message.channel
        (await channel.send('Welcome!'))
    if message.content.startswith('!Qadjoke'):
        channel = message.channel
        arrResult = Result(my_database.all_docs, include_docs=True)
        dbNum = my_database.doc_count()
        num1 = (nqrng.random_number() % dbNum)
        num2 = (nqrng.random_number() % dbNum)
        num = ((num1 * num2) % dbNum)
        result = arrResult[num][0]['doc']['Qdad']
        print(f'{num} is randnum, result is {result}')
        (await channel.send(f'{result}'))