Merge remote-tracking branch 'origin/development' into development
This commit is contained in:
commit
423edf1a3a
@ -1,10 +1,14 @@
|
|||||||
yarl<1.2
|
yarl<1.2
|
||||||
numpy==1.14.0
|
|
||||||
aiofiles
|
aiofiles
|
||||||
# aiomultiprocess
|
# aiomultiprocess
|
||||||
# aiosqlite
|
# aiosqlite
|
||||||
# asyncpg
|
|
||||||
# dataclasses
|
|
||||||
# cached_property
|
# cached_property
|
||||||
uvloop==0.9.1
|
uvloop==0.9.1
|
||||||
aiohttp==3.2.1
|
aiohttp==3.2.1
|
||||||
|
# Someone forgot to add this in.
|
||||||
|
asyncpg
|
||||||
|
# Music cog requirements
|
||||||
|
opuslib
|
||||||
|
dataclasses
|
||||||
|
PyNaCl
|
||||||
|
youtube_dl
|
||||||
|
|||||||
@ -1,6 +1,17 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
until python -m src; do
|
# 20th June 2018
|
||||||
echo "Sebi-Machine shutdown with error: $?. Restarting..." >&2
|
# Esp: added a trap here, as it otherwise attempts to restart when given
|
||||||
sleep 1
|
# the interrupt signal. This is really annoying over SSH when I have
|
||||||
|
# a 1-second lag anyway.
|
||||||
|
trap "echo 'Received interrupt. Exiting.'; exit 0" SIGINT
|
||||||
|
|
||||||
|
# Also loads the venv if it is present.
|
||||||
|
[ -d .venv/bin ] && source .venv/bin/activate && echo "Entered venv." || echo "No venv detected."
|
||||||
|
|
||||||
|
until python -m src; do
|
||||||
|
# Added colouring to ensure the date of shutdown and the exit code stands
|
||||||
|
# out from the other clutter in the traceback that might have been output.
|
||||||
|
echo -e "\e[0;31m[$(date --utc)]\e[0m Sebi-Machine shutdown with error \e[0;31m$?\e[0m. Restarting..." >&2
|
||||||
|
sleep 1
|
||||||
done
|
done
|
||||||
|
|||||||
@ -11,7 +11,7 @@ from discord.ext import commands
|
|||||||
import youtube_dl
|
import youtube_dl
|
||||||
|
|
||||||
# noinspection PyUnresolvedReferences,PyUnresolvedReferences,PyPackageRequirements
|
# noinspection PyUnresolvedReferences,PyUnresolvedReferences,PyPackageRequirements
|
||||||
from utils import noblock
|
from . utils import noblock
|
||||||
|
|
||||||
|
|
||||||
YT_DL_OPTS = {
|
YT_DL_OPTS = {
|
||||||
|
|||||||
@ -32,7 +32,6 @@ import sys
|
|||||||
import asyncio
|
import asyncio
|
||||||
import discord
|
import discord
|
||||||
from discord.ext.commands.formatter import Paginator
|
from discord.ext.commands.formatter import Paginator
|
||||||
import numpy as np
|
|
||||||
|
|
||||||
|
|
||||||
class Capturing(list):
|
class Capturing(list):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user