1
0
Fork 0
mirror of synced 2024-05-19 12:02:29 +12:00

Syncing git with server

This commit is contained in:
phxntxm 2016-07-08 18:26:43 -05:00
parent 4139bd2cce
commit 3d0c73e0a8

22
bot.py
View file

@ -1,21 +1,23 @@
#!/usr/local/bin/python3.5
import asyncio
import discord
from discord.ext import commands
import sys
import json
import os
import random
import subprocess
import urllib.request
import urllib.parse
import json
import re
import pymysql.cursors
import subprocess
import sys
import urllib.parse
import urllib.request
import yaml
import playlist
from threading import Timer
import discord
import pymysql.cursors
from discord.ext import commands
import playlist
with open("/home/phxntx5/public_html/bot/config.yml", "r") as f:
global_config = yaml.load(f)
@ -151,7 +153,7 @@ async def py(ctx):
result = eval(match_single[0])
await bot.say("```{0}```".format(result))
else:
def say(v):
def r(v):
loop.create_task(bot.say("```{0}```".format(v)))
exec(match_multi[0])