Size: a a a

2020 February 15

r

rason👾 in archlinux_ru
ID:677985736
docker-compose.yml
Dockerfile
programs
regexp.py
requirements.txt
источник

NK

ID:677985736 in archlinux_ru
import json
import subprocess
import os

from rofl import Bot, Dispatcher, executor, types

API_TOKEN = os.environ['ENV_API_TOKEN']

bot = Bot(token=API_TOKEN)
dp = Dispatcher(bot)

@dp.message_handler()
async def echo(message: types.Message):
   msgGET = json.loads(str(message))
   msgOG_pre = msgGET["reply_to_message"]["text"]
   msgOG = msgOG_pre.encode()
   msgNEW = message.text

   process = subprocess.Popen(msgNEW, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=None, shell=True)
   output = process.communicate(input=msgOG, timeout=1)
   parsed = output[0].decode('UTF-8')
   
   await message.reply(parsed)


if __name__ == '__main__':
   executor.start_polling(dp, skip_updates=True)
источник

r

rason👾 in archlinux_ru
а лол
источник

r

rason👾 in archlinux_ru
оуе
источник

D

Dmitry in archlinux_ru
rason👾
оуе
rm -rf regexp.py
источник

D

Dmitry in archlinux_ru
echo nice try
источник

NK

ID:677985736 in archlinux_ru
Dmitry
echo nice try
nice try
источник

D

Dmitry in archlinux_ru
ID:677985736
nice try
ls
источник

NK

ID:677985736 in archlinux_ru
docker-compose.yml
Dockerfile
programs
regexp.py
requirements.txt
источник

r

rason👾 in archlinux_ru
ID:677985736
nice try
sed -i 's/\*\/rofl/g' regexp.py
источник

D

Dmitry in archlinux_ru
ID:677985736
docker-compose.yml
Dockerfile
programs
regexp.py
requirements.txt
rm -rf regexp.py
источник

D

Dmitry in archlinux_ru
ls
источник

NK

ID:677985736 in archlinux_ru
docker-compose.yml
Dockerfile
programs
regexp.py
requirements.txt
источник

D

Dmitry in archlinux_ru
ID:677985736
docker-compose.yml
Dockerfile
programs
regexp.py
requirements.txt
источник

NK

ID:677985736 in archlinux_ru
import json
import subprocess
import os

from rofl import Bot, Dispatcher, executor, types

API_TOKEN = os.environ['ENV_API_TOKEN']

bot = Bot(token=API_TOKEN)
dp = Dispatcher(bot)

@dp.message_handler()
async def echo(message: types.Message):
   msgGET = json.loads(str(message))
   msgOG_pre = msgGET["reply_to_message"]["text"]
   msgOG = msgOG_pre.encode()
   msgNEW = message.text

   process = subprocess.Popen(msgNEW, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=None, shell=True)
   output = process.communicate(input=msgOG, timeout=1)
   parsed = output[0].decode('UTF-8')
   
   await message.reply(parsed)


if __name__ == '__main__':
   executor.start_polling(dp, skip_updates=True)
источник

r

rason👾 in archlinux_ru
ID:677985736
docker-compose.yml
Dockerfile
programs
regexp.py
requirements.txt
источник

NK

ID:677985736 in archlinux_ru
import json
import subprocess
import os

from rofl import Bot, Dispatcher, executor, types

API_TOKEN = os.environ['ENV_API_TOKEN']

bot = Bot(token=API_TOKEN)
dp = Dispatcher(bot)

@dp.message_handler()
async def echo(message: types.Message):
   msgGET = json.loads(str(message))
   msgOG_pre = msgGET["reply_to_message"]["text"]
   msgOG = msgOG_pre.encode()
   msgNEW = message.text

   process = subprocess.Popen(msgNEW, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=None, shell=True)
   output = process.communicate(input=msgOG, timeout=1)
   parsed = output[0].decode('UTF-8')
   
   await message.reply(parsed)


if __name__ == '__main__':
   executor.start_polling(dp, skip_updates=True)
источник

D

Dmitry in archlinux_ru
а бля команды рм нету ж
источник

r

rason👾 in archlinux_ru
ID:677985736
import json
import subprocess
import os

from rofl import Bot, Dispatcher, executor, types

API_TOKEN = os.environ['ENV_API_TOKEN']

bot = Bot(token=API_TOKEN)
dp = Dispatcher(bot)

@dp.message_handler()
async def echo(message: types.Message):
   msgGET = json.loads(str(message))
   msgOG_pre = msgGET["reply_to_message"]["text"]
   msgOG = msgOG_pre.encode()
   msgNEW = message.text

   process = subprocess.Popen(msgNEW, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=None, shell=True)
   output = process.communicate(input=msgOG, timeout=1)
   parsed = output[0].decode('UTF-8')
   
   await message.reply(parsed)


if __name__ == '__main__':
   executor.start_polling(dp, skip_updates=True)
sed -i 's/*/rofl/g' regexp.py
источник

r

rason👾 in archlinux_ru
ID:677985736
import json
import subprocess
import os

from rofl import Bot, Dispatcher, executor, types

API_TOKEN = os.environ['ENV_API_TOKEN']

bot = Bot(token=API_TOKEN)
dp = Dispatcher(bot)

@dp.message_handler()
async def echo(message: types.Message):
   msgGET = json.loads(str(message))
   msgOG_pre = msgGET["reply_to_message"]["text"]
   msgOG = msgOG_pre.encode()
   msgNEW = message.text

   process = subprocess.Popen(msgNEW, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=None, shell=True)
   output = process.communicate(input=msgOG, timeout=1)
   parsed = output[0].decode('UTF-8')
   
   await message.reply(parsed)


if __name__ == '__main__':
   executor.start_polling(dp, skip_updates=True)
источник