Merge branch 'v1.0.0' into 'main'
V1.0.0 See merge request stark-industries/j.a.r.v.i.s.!6
This commit is contained in:
commit
61d4569832
2 changed files with 4 additions and 5 deletions
|
@ -1,11 +1,10 @@
|
||||||
import re
|
import re
|
||||||
|
|
||||||
import aiohttp
|
import aiohttp
|
||||||
|
import jarvis
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
from discord_slash import cog_ext
|
from discord_slash import cog_ext
|
||||||
from discord_slash.utils.manage_commands import create_option
|
from discord_slash.utils.manage_commands import create_option
|
||||||
|
|
||||||
import jarvis
|
|
||||||
from jarvis.config import get_config
|
from jarvis.config import get_config
|
||||||
from jarvis.data.dbrand import shipping_lookup
|
from jarvis.data.dbrand import shipping_lookup
|
||||||
from jarvis.utils import build_embed
|
from jarvis.utils import build_embed
|
||||||
|
@ -116,11 +115,11 @@ class DbrandCog(commands.Cog):
|
||||||
base="db",
|
base="db",
|
||||||
name="extortion",
|
name="extortion",
|
||||||
guild_ids=[862402786116763668, 578757004059738142],
|
guild_ids=[862402786116763668, 578757004059738142],
|
||||||
description="(not)extortion",
|
description="(not) extortion",
|
||||||
)
|
)
|
||||||
async def _extort(self, ctx):
|
async def _extort(self, ctx):
|
||||||
await ctx.send(
|
await ctx.send(
|
||||||
"Be (not)extorted here: " + self.base_url + "not-extortion"
|
"Be (not) extorted here: " + self.base_url + "not-extortion"
|
||||||
)
|
)
|
||||||
|
|
||||||
@cog_ext.cog_subcommand(
|
@cog_ext.cog_subcommand(
|
||||||
|
|
|
@ -358,7 +358,7 @@ class ModlogCog(commands.Cog):
|
||||||
{"guild": after.guild.id, "setting": "modlog"}
|
{"guild": after.guild.id, "setting": "modlog"}
|
||||||
)
|
)
|
||||||
if modlog:
|
if modlog:
|
||||||
if before.content == after.content:
|
if before.content == after.content or before.content is None:
|
||||||
return
|
return
|
||||||
channel = before.guild.get_channel(modlog["value"])
|
channel = before.guild.get_channel(modlog["value"])
|
||||||
fields = [
|
fields = [
|
||||||
|
|
Loading…
Add table
Reference in a new issue