Skip to content

Commit

Permalink
fix: removed unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Vyvy-vi committed Feb 23, 2021
1 parent 61c3cef commit dbdb664
Show file tree
Hide file tree
Showing 13 changed files with 8 additions and 22 deletions.
2 changes: 1 addition & 1 deletion bot/cogs/coffee_cog.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import random
import discord

from discord import Member, Embed
from discord.ext import commands
from discord.ext.commands import Context
Expand Down
1 change: 0 additions & 1 deletion bot/cogs/comic_cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import aiohttp

from discord.ext.commands import Context, Embed
import discord
from discord.ext import commands
from .utils import COLOR

Expand Down
1 change: 0 additions & 1 deletion bot/cogs/economy_cog.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import time
import random
import discord
from discord.ext import commands
from pymongo import MongoClient
from typing import Union
Expand Down
1 change: 0 additions & 1 deletion bot/cogs/error_cog.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import discord
from discord.ext import commands

from .utils import COLOR
Expand Down
2 changes: 0 additions & 2 deletions bot/cogs/events_cog.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import discord
from discord import Embed
from discord.ext import commands
from pymongo import MongoClient

Expand Down
1 change: 0 additions & 1 deletion bot/cogs/fun_cog.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import random
import discord
from discord import Embed, Member
from discord.ext import commands
from discord.ext.commands import Context
Expand Down
1 change: 0 additions & 1 deletion bot/cogs/game_cog.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import random
import discord
from discord import Member, Embed

from pymongo import MongoClient
Expand Down
1 change: 0 additions & 1 deletion bot/cogs/help_cog.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import discord
from discord.ext import commands
from discord import Embed

Expand Down
2 changes: 0 additions & 2 deletions bot/cogs/meme_cog.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import discord
from discord.ext import commands, tasks
from discord import Embed

from discord.ext.commands import Context
Expand Down
7 changes: 3 additions & 4 deletions bot/cogs/name_cog.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import random
import discord
from discord import Embed
from discord import Embed, Color

from discord.ext import commands
from discord.ext.commands import Context
Expand All @@ -21,7 +20,7 @@ async def username(self, ctx: Context, lim: int = 30):
embed = Embed(
title=op,
description='That sounds cool :',
color=discord.Color.dark_magenta())
color=Color.dark_magenta())
await ctx.send(embed=embed)

@commands.command(aliases=['joe-username', 'ju'])
Expand All @@ -32,7 +31,7 @@ async def joe_username(self, ctx: Context, lim: int = 4):
embed = Embed(
title=op,
description='That sounds cool, cool, cool.. Right.',
color=discord.Color.gold())
color=Color.gold())
await ctx.send(embed=embed)


Expand Down
1 change: 0 additions & 1 deletion bot/cogs/ping_cog.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import random
import discord
from discord import Embed

from discord.ext import commands
Expand Down
1 change: 0 additions & 1 deletion bot/cogs/users_cog.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import discord
from discord import Member, Embed
from discord.ext import commands
from discord.ext.commands import Context
Expand Down
9 changes: 4 additions & 5 deletions bot/cogs/utils_cog.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import random
import discord
import wikipedia
import requests
import wolframalpha

from discord import Embed
from discord import Embed, Color
from discord.ext import commands
from discord.ext.commands import Context

Expand Down Expand Up @@ -36,7 +35,7 @@ async def say(self, ctx: Context, *args):
embed = Embed(
title=f'{output}',
description=f'~{user}',
colour=discord.Color.greyple())
colour=Color.greyple())
await ctx.send(embed=embed)

@commands.command(pass_context=True)
Expand Down Expand Up @@ -72,7 +71,7 @@ async def wiki(self, ctx: Context, *, args):
pg = err.options
wikiTitle = str(page.title.encode('utf-8'))
wikiSummary = page.summary
embed = discord.Embed(title=f'**{wikiTitle[1:]}**', description=str(
embed = Embed(title=f'**{wikiTitle[1:]}**', description=str(
wikiSummary[0:900]) + '...', color=COLOR.WIKI, url=page.url)
embed.set_footer(text='Powered by Wikipedia...')
if pg != 0:
Expand Down Expand Up @@ -145,7 +144,7 @@ async def weather(self, ctx: Context, *, loc):
else:
embed = Embed(title='Weather',
description='API Connection Refused',
color=discord.Color.red())
color=Color.red())
embed.set_footer(text='Requested by {ctx.message.author.name}')

await ctx.send(embed=embed)
Expand Down

0 comments on commit dbdb664

Please sign in to comment.