[feat]: Add pretty_errors

This commit is contained in:
Sweetbread 2023-05-14 17:37:55 +03:00
parent a054ae191a
commit c574cc4424
3 changed files with 24 additions and 4 deletions

View File

@ -18,6 +18,7 @@ matplotlib = "*"
simpledemotivators = {file = "https://github.com/Infqq/simpledemotivators/archive/main.zip"} simpledemotivators = {file = "https://github.com/Infqq/simpledemotivators/archive/main.zip"}
"discord.py" = {extras = ["voice"], version = "*"} "discord.py" = {extras = ["voice"], version = "*"}
pillow = {file = "https://github.com/python-pillow/Pillow/archive/refs/tags/9.5.0.zip"} pillow = {file = "https://github.com/python-pillow/Pillow/archive/refs/tags/9.5.0.zip"}
pretty-errors = "*"
[dev-packages] [dev-packages]

24
Pipfile.lock generated
View File

@ -1,7 +1,7 @@
{ {
"_meta": { "_meta": {
"hash": { "hash": {
"sha256": "797ecb59f90d7854fe5a3da4081bd3ddcca21da9dbc865e66bd5f56dec19c4b2" "sha256": "5fd31ea1728c2767b040091ff943f0048057d157b4d1b66507560fec546b4fff"
}, },
"pipfile-spec": 6, "pipfile-spec": 6,
"requires": { "requires": {
@ -402,6 +402,14 @@
"markers": "python_full_version >= '3.7.0'", "markers": "python_full_version >= '3.7.0'",
"version": "==3.1.0" "version": "==3.1.0"
}, },
"colorama": {
"hashes": [
"sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44",
"sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6"
],
"markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5, 3.6'",
"version": "==0.4.6"
},
"contourpy": { "contourpy": {
"hashes": [ "hashes": [
"sha256:031154ed61f7328ad7f97662e48660a150ef84ee1bc8876b6472af88bf5a9b98", "sha256:031154ed61f7328ad7f97662e48660a150ef84ee1bc8876b6472af88bf5a9b98",
@ -516,11 +524,11 @@
}, },
"fonttools": { "fonttools": {
"hashes": [ "hashes": [
"sha256:64c0c05c337f826183637570ac5ab49ee220eec66cf50248e8df527edfa95aeb", "sha256:106caf6167c4597556b31a8d9175a3fdc0356fdcd70ab19973c3b0d4c893c461",
"sha256:9234b9f57b74e31b192c3fc32ef1a40750a8fbc1cd9837a7b7bfc4ca4a5c51d7" "sha256:dba8d7cdb8e2bac1b3da28c5ed5960de09e59a2fe7e63bb73f5a59e57b0430d2"
], ],
"markers": "python_version >= '3.8'", "markers": "python_version >= '3.8'",
"version": "==4.39.3" "version": "==4.39.4"
}, },
"frozenlist": { "frozenlist": {
"hashes": [ "hashes": [
@ -1000,6 +1008,14 @@
], ],
"version": "==9.5.0" "version": "==9.5.0"
}, },
"pretty-errors": {
"hashes": [
"sha256:8ce68ccd99e0f2a099265c8c1f1c23b7c60a15d69bb08816cb336e237d5dc983",
"sha256:a16ba5c752c87c263bf92f8b4b58624e3b1e29271a9391f564f12b86e93c6755"
],
"index": "pypi",
"version": "==1.2.25"
},
"pycparser": { "pycparser": {
"hashes": [ "hashes": [
"sha256:8ee45429555515e1f6b185e78100aea234072576aa43ab53aefcae078162fca9", "sha256:8ee45429555515e1f6b185e78100aea234072576aa43ab53aefcae078162fca9",

3
bot.py
View File

@ -2,6 +2,8 @@
import json import json
import traceback import traceback
import pretty_errors
from json import load, dump from json import load, dump
from os import listdir, getenv from os import listdir, getenv
from os.path import isfile, join, getsize from os.path import isfile, join, getsize
@ -38,6 +40,7 @@ from cogs.music import *
TOKEN = getenv('NATSUKO_TOKEN') TOKEN = getenv('NATSUKO_TOKEN')
my_id = 710089471835504672 my_id = 710089471835504672
db = MongoClient('localhost', 27017).Koteika db = MongoClient('localhost', 27017).Koteika
if os.path.exists('prefixes.json'): if os.path.exists('prefixes.json'):