cleanup (moved misc_utils to utils), changed sing footer.
This commit is contained in:
parent
4f3c82f9c0
commit
6e74c1bb31
@ -6,11 +6,11 @@ import random
|
|||||||
from typing import Optional
|
from typing import Optional
|
||||||
import logging
|
import logging
|
||||||
import discord
|
import discord
|
||||||
from cogs.misc_util import Util
|
|
||||||
import aiosqlite as sqlite3
|
import aiosqlite as sqlite3
|
||||||
from sh import cowsay as cow_say, fortune
|
from sh import cowsay as cow_say, fortune
|
||||||
from discord.ext import bridge, commands
|
from discord.ext import bridge, commands
|
||||||
from disc_havoc import Havoc
|
from disc_havoc import Havoc
|
||||||
|
from util.misc_util import Util
|
||||||
from constructors import MiscException
|
from constructors import MiscException
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
@ -98,7 +98,7 @@ class Sing(commands.Cog):
|
|||||||
for section in search_result_wrapped:
|
for section in search_result_wrapped:
|
||||||
c+=1
|
c+=1
|
||||||
if c == len(search_result_wrapped):
|
if c == len(search_result_wrapped):
|
||||||
footer = f"Found on: {search_result_src}"
|
footer = f"`Found on: {search_result_src}`"
|
||||||
# if ctx.guild.id == 1145182936002482196:
|
# if ctx.guild.id == 1145182936002482196:
|
||||||
# section = section.upper()
|
# section = section.upper()
|
||||||
section = regex.sub(r'\p{Vert_Space}', ' / ', section.strip())
|
section = regex.sub(r'\p{Vert_Space}', ' / ', section.strip())
|
||||||
@ -173,7 +173,7 @@ class Sing(commands.Cog):
|
|||||||
for section in search_result_wrapped:
|
for section in search_result_wrapped:
|
||||||
c+=1
|
c+=1
|
||||||
if c == len(search_result_wrapped):
|
if c == len(search_result_wrapped):
|
||||||
footer = f"Found on: {search_result_src}"
|
footer = f"`Found on: {search_result_src}`"
|
||||||
# if ctx.guild.id == 1145182936002482196:
|
# if ctx.guild.id == 1145182936002482196:
|
||||||
# section = section.upper()
|
# section = section.upper()
|
||||||
section = regex.sub(r'\p{Vert_Space}', ' / ', section.strip())
|
section = regex.sub(r'\p{Vert_Space}', ' / ', section.strip())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user