1
0
Fork 0
mirror of https://github.com/myned/modufur.git synced 2024-12-25 22:57:27 +00:00
This commit is contained in:
Myned 2017-11-20 02:16:01 -05:00
parent e997c242ea
commit f3daa5209a

View file

@ -1,12 +1,12 @@
import asyncio import asyncio
import json import json
import re import re
import sys
import traceback as tb import traceback as tb
from contextlib import suppress from contextlib import suppress
from fractions import gcd
from datetime import datetime as dt from datetime import datetime as dt
from datetime import timedelta as td from datetime import timedelta as td
import sys from fractions import gcd
import discord as d import discord as d
from discord import errors as err from discord import errors as err
@ -219,7 +219,8 @@ class MsG:
try: try:
await dest.trigger_typing() await dest.trigger_typing()
ident = ident if not ident.isdigit() else re.search('show/([0-9]+)', ident).group(1) ident = ident if not ident.isdigit() else re.search(
'show/([0-9]+)', ident).group(1)
post = await u.fetch('https://e621.net/post/show.json', params={'id': ident}, json=True) post = await u.fetch('https://e621.net/post/show.json', params={'id': ident}, json=True)
embed = d.Embed( embed = d.Embed(