Commit 7ec2c9d5 authored by thecy's avatar thecy

doorkeeper requires JSON data, not HTTP parameters

parent 6bb2c6e2
......@@ -123,7 +123,7 @@ def revoke(admin_username):
def slotmachien_request(username, command):
r =, data={
r =, json={
'username': username, 'token': config.slotmachien_token, 'text': command})
return r.text
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment