Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from flask import Flask, request, json
- import vk_api
- import random
- vk = vk_api.VkApi(token="fe5e99d94cc3ea80ac8a55b2cb512d34da27f697734ca713f7a498d2b5e9c2b516841c50c5c6c0721e404")
- app = Flask(__name__)
- @app.route('/', methods = ["POST"])
- def main():
- data = json.loads(request.data)
- if data["type"] == "confirmation":
- return "51f703cf"
- elif data["type"] == "message_new":
- object = data["object"]
- id = object["peer_id"]
- body = object["text"]
- if body.lower() == "*public176330780 ":
- vk.method("messages.send", {"peer_id": id, "message": "22222222222", "random_id": random.randint(1, 2147483647)})
- elif body.lower() == "я ":
- vk.method("messages.send", {"peer_id": id, "message": "Казнить грешника!", "random_id": random.randint(1, 2147483647)})
- else:
- for message in range(250):
- vk.method("messages.send", {"peer_id": id, "message": "̩̺̦̻̤ ̴̜̰͉̟͇̟̦̯̔ͨͤ̆̅̌ͮͤͦ̅ͭ͆ͯ͆̅̒͗ͯ̀̚͢͞͞ ̜̤̟̦͍̰͔̯̗̄̔̾̽͗̒̉̓͋͌̽̂̄͂̔̔̂͐̿͡͡͡͝͠ ̧̀͒ͫ̄͛͐̆͠҉̝̞̖͎͎̲̮͖̫̰̦̖́ ̵̫̲̙̥̦̩̫ͫ̅ͥͧͬ̊̍ͭ̔͐̂ͩͭ̀̚͢ ̡̳̮͓̘͚̟͚̼̲̪͉̟̘̫͓̞̌͂́̽͋͋̒͛̈̎͞ ͎̺̼̫͎̒̏ͦ̍̾ ͛̾ͧ͛ͪ͟҉̮̻͙̼͖̤̗̞̗͓̙͙̳̻̩̞̥ͅ ̸̨̨̢̡̲̯̭̟̬̏͊̄͑̐ͪ̿ͭͤ̄ͮ͆̾̃ͩ̑ ̡̘̬̣͉͇̬͚͖̭̲ͧ͂̄̆̏ͫ̑͡ ̺̦̳͕͇̪́͒ͪͮͯͫ͆͒̊̈̃̀͢͝ ̢̣̩̣̟͕͑́̌͒́͌̑͑́̐̾ͣ͂̀͟͟ ͈̬̥̟̮̥͓̝ͭ̍͌̅͒̂͐̓̇̌̈́̚͘͠͡ ̵̴̢̩͎̼̻̫̘͙͈̗̐̇̂ͪ̄ͫ̐̾̈̎͋ͨ͢ ̭̭͈̥͓̘̯̠̘̠̤̩̟̬̼̤̗̖̃̊ͦͩ͝ ̴̵̡͚̻̟͈̫̫͍̺̱̹̬̼̳͇͚̠̺̓̿̇̆̿̇̄͗̍͞ ̩̺̦̻̤͌̑ͨͯͭ ̴̜̰͉̟͇̟̦̯̔ͨͤ̆̅̌ͮͤͦ̅ͭ͆ͯ͆̅̒͗ͯ̀̚͢͞͞ ̜̤̟̦͍̰͔̯̗̄̔̾̽͗̒̉̓͋͌̽̂̄͂̔̔̂͐̿͡͡͡͝͠ ̧̀͒ͫ̄͛͐̆͠҉̝̞̖͎͎̲̮͖̫̰̦̖́ ̵̫̲̙̥̦̩̫ͫ̅ͥͧͬ̊̍ͭ̔͐̂ͩͭ̀̚͢ ̡̳̮͓̘͚̟͚̼̲̪͉̟̘̫͓̞̌͂́̽͋͋̒͛̈̎͞ ͎̺̼̫͎̒̏ͦ̍̾ ͛̾ͧ͛ͪ͟҉̮̻͙̼͖̤̗̞̗͓̙͙̳̻̩̞̥ͅ ̸̨̨̢̡̲̯̭̟̬̏͊̄͑̐ͪ̿ͭͤ̄ͮ͆̾̃ͩ̑ ̡̘̬̣͉͇̬͚͖̭̲ͧ͂̄̆̏ͫ̑͡ ̺̦̳͕͇̪́͒ͪͮͯͫ͆͒̊̈̃̀͢͝ ̢̣̩̣̟͕͑́̌͒́͌̑͑́̐̾ͣ͂̀͟͟ ͈̬̥̟̮̥͓̝ͭ̍͌̅͒̂͐̓̇̌̈́̚͘͠͡ ̵̴̢̩͎̼̻̫̘͙͈̗̐̇̂ͪ̄ͫ̐̾̈̎͋ͨ͢ ̭̭͈̥͓̘̯̠̘̠̤̩̟̬̼̤̗̖̃̊ͦͩ͝ ̴̵̡͚̻̟͈̫̫͍̺̱̹̬̼̳͇͚̠̺̓̿̇̆̿̇̄͗̍͞ ̩̺̦̻̤͌̑ͨͯͭ ̴̜̰͉̟͇̟̦̯̔ͨͤ̆̅̌ͮͤͦ̅ͭ͆ͯ͆̅̒͗ͯ̀̚͢͞͞ ̜̤̟̦͍̰͔̯̗̄̔̾̽͗̒̉̓͋͌̽̂̄͂̔̔̂͐̿͡͡͡͝͠ ̧̀͒ͫ̄͛͐̆͠҉̝̞̖͎͎̲̮͖̫̰̦̖́ ̵̫̲̙̥̦̩̫ͫ̅ͥͧͬ̊̍ͭ̔͐̂ͩͭ̀̚͢ ̡̳̮͓̘͚̟͚̼̲̪͉̟̘̫͓̞̌͂́̽͋͋̒͛̈̎͞ ͎̺̼̫͎̒̏ͦ̍̾ ͛̾ͧ͛ͪ͟҉̮̻͙̼͖̤̗̞̗͓̙͙̳̻̩̞̥ͅ ̸̨̨̢̡̲̯̭̟̬̏͊̄͑̐ͪ̿ͭͤ̄ͮ͆̾̃ͩ̑ ̡̘̬̣͉͇̬͚͖̭̲ͧ͂̄̆̏ͫ̑͡ ̺̦̳͕͇̪́͒ͪͮͯͫ͆͒̊̈̃̀͢͝ ̢̣̩̣̟͕͑́̌͒́͌̑͑́̐̾ͣ͂̀͟͟ ͈̬̥̟̮̥͓̝ͭ̍͌̅͒̂͐̓̇̌̈́̚͘͠͡ ̵̴̢̩͎̼̻̫̘͙͈̗̐̇̂ͪ̄ͫ̐̾̈̎͋ͨ͢ ̭̭͈̥͓̘̯̠̘̠̤̩̟̬̼̤̗̖̃̊ͦͩ͝ ̴̵̡͚̻̟͈̫̫͍̺̱̹̬̼̳͇͚̠̺̓̿̇̆̿̇̄͗̍͞", "random_id": random.randint(1, 2147483647)})
- return "ok"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement