mirror of
https://github.com/hencaric/SCNewsBot.git
synced 2026-08-18 07:26:02 +01:00
Updating to source code match
This commit is contained in:
@@ -5,7 +5,7 @@ import discord
|
||||
import datetime
|
||||
from utils import Config
|
||||
|
||||
VERSION = "1.0.3"
|
||||
VERSION = "1.0.4"
|
||||
INTENTS = discord.Intents.default()
|
||||
INTENTS.message_content = True
|
||||
INTENTS.members = True
|
||||
@@ -46,10 +46,10 @@ class CoreCog(commands.Cog, name="Core"):
|
||||
@commands.Cog.listener()
|
||||
async def on_ready(self) -> None:
|
||||
print("The News Bot is now ready.")
|
||||
channel = self.bot.get_channel(611922107345141760)
|
||||
embed=discord.Embed(title=f"The News Bot is now online!",description="Hello! Please use the below command to summon the embed editor. ```&embed create```", color=0x00FFFF)
|
||||
embed.timestamp = datetime.datetime.now()
|
||||
await channel.send(embed=embed)
|
||||
# channel = self.bot.get_channel(611922107345141760)
|
||||
# embed=discord.Embed(title=f"The News Bot is now online!",description="Hello! Please use the below command to summon the embed editor. ```&embed create```", color=0x00FFFF)
|
||||
# embed.timestamp = datetime.datetime.now()
|
||||
# await channel.send(embed=embed)
|
||||
|
||||
@commands.Cog.listener()
|
||||
async def on_message(self, message: discord.Message) -> None:
|
||||
@@ -77,7 +77,7 @@ class CoreCog(commands.Cog, name="Core"):
|
||||
)
|
||||
embed.add_field(
|
||||
name="Authors",
|
||||
value=f"Ian (<@1088892000348151839>), and mudkip (<@998070081709932654>)",
|
||||
value=f"<@288522211164160010> and <@998070081709932654>",
|
||||
)
|
||||
view = discord.ui.View()
|
||||
view.add_item(
|
||||
|
||||
Reference in New Issue
Block a user