Syncing git with server
This commit is contained in:
parent
4139bd2cce
commit
3d0c73e0a8
22
bot.py
22
bot.py
|
@ -1,21 +1,23 @@
|
||||||
#!/usr/local/bin/python3.5
|
#!/usr/local/bin/python3.5
|
||||||
|
|
||||||
import asyncio
|
import asyncio
|
||||||
import discord
|
import json
|
||||||
from discord.ext import commands
|
|
||||||
import sys
|
|
||||||
import os
|
import os
|
||||||
import random
|
import random
|
||||||
import subprocess
|
|
||||||
import urllib.request
|
|
||||||
import urllib.parse
|
|
||||||
import json
|
|
||||||
import re
|
import re
|
||||||
import pymysql.cursors
|
import subprocess
|
||||||
|
import sys
|
||||||
|
import urllib.parse
|
||||||
|
import urllib.request
|
||||||
import yaml
|
import yaml
|
||||||
import playlist
|
|
||||||
from threading import Timer
|
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:
|
with open("/home/phxntx5/public_html/bot/config.yml", "r") as f:
|
||||||
global_config = yaml.load(f)
|
global_config = yaml.load(f)
|
||||||
|
|
||||||
|
@ -151,7 +153,7 @@ async def py(ctx):
|
||||||
result = eval(match_single[0])
|
result = eval(match_single[0])
|
||||||
await bot.say("```{0}```".format(result))
|
await bot.say("```{0}```".format(result))
|
||||||
else:
|
else:
|
||||||
def say(v):
|
def r(v):
|
||||||
loop.create_task(bot.say("```{0}```".format(v)))
|
loop.create_task(bot.say("```{0}```".format(v)))
|
||||||
|
|
||||||
exec(match_multi[0])
|
exec(match_multi[0])
|
||||||
|
|
Loading…
Reference in a new issue