#!/usr/bin/python3
import asyncio
import configparser
import discord
import os
import logging
from discord.ext import commands

logging.basicConfig(level=logging.INFO)

# Parse the config and stick in global "config" var
config = configparser.ConfigParser()
for inifile in [os.path.expanduser('~')+'/.bayohwoolph.ini','bayohwoolph.local.ini','bayohwoolph.ini']:
    if os.path.isfile(inifile):
        config.read(inifile)
        break # First config file wins
MAIN = config['MAIN']

description = '''Dark Echo's barkeep'''
bot = commands.Bot(command_prefix='$', description=description)

@bot.event
@asyncio.coroutine
def on_ready():
    print('Logged in as')
    print(bot.user.name)
    print(bot.user.id)
    print('------')

bot.run(MAIN.get('login_token'))

@@ -556,11 +556,39 @@
 fix=
+commands.when_mentioned_or(
 '$'
+)
 , de

Make bot respond to mentions.