#python 3
#requires https://github.com/Rapptz/discord.py / "pip install discord.py"
#licensed under the MIT license. For more information view LICENSE.md

import discord
import asyncio
import os.path
import re


#CONFIG START -------
channelids = {
'123456789': [':thinking:', ':upside_down:'], 
'987654321': [':smile:', ':forgot_others:']
}
userids = {
'userid1': [':antoher:', ':someother_emoji:'], 
'userid2': [':andanotherone:', ':another_one:']
}
regexes = {'regexpattern1': [':emoji9:', ':emoji10:'], 
'pattern2': [':emoji11:', ':emoji12']
}
token = ''
#CONFIG END -------


client = discord.Client()

@client.event
async def on_ready():
	print('Logged in as')
	print(client.user.name)
	print(client.user.id)
	print('------')

@client.event
async def on_message(message):
	try:
		for key, value in userids:
			if (message.author.id == key):
				for emoji in value:
					client.add_reaction(message, emoji)
		
		for key, value in channelids:
			if (message.channel.id == key):
					for emoji in value:
						client.add_reaction(message, emoji)
		
		for key, value in regexes:
			if (re.match(key, message.content)):
				for emoji in value:
					client.add_reaction(message, emoji)
	except:
		print("Unexpected error:", sys.exc_info()[0])

if token:
	client.run(token)
else:
	client.run(input('Please input token: '))

@@ -1022,32 +1022,33 @@
 dd_reaction(mess
+s
 age, emoji)%0A%09%09%0A%09

test syntax error