diff --git a/scnewsbot/bot.py b/scnewsbot/bot.py index 9faa43b..7e726d1 100644 --- a/scnewsbot/bot.py +++ b/scnewsbot/bot.py @@ -1,6 +1,8 @@ import subprocess from discord.ext import commands +from discord.ui import Button import discord +import datetime from utils import Config VERSION = "1.0.3" @@ -43,7 +45,11 @@ class CoreCog(commands.Cog, name="Core"): @commands.Cog.listener() async def on_ready(self) -> None: - print("The bot is now ready.") + 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) @commands.Cog.listener() async def on_message(self, message: discord.Message) -> None: diff --git a/scnewsbot/extensions/announcements.py b/scnewsbot/extensions/announcements.py index 56cc045..95f3038 100644 --- a/scnewsbot/extensions/announcements.py +++ b/scnewsbot/extensions/announcements.py @@ -3,12 +3,13 @@ from __future__ import annotations from typing import Any, Optional, Callable, Awaitable from dataclasses import dataclass from discord.ext import commands +from discord.ui import Button import discord from utils import can_publish_announcements ANNOUNCEMENT_BUILDER_TIMEOUT = 1200 -ANNOUNCEMENT_EMOJI = "👍" # <:upvote:354233015842635776> -DEFAULT_IMAGE_URL = "https://media.discordapp.net/attachments/1062905729532571719/1123340546979676311/NewsDefault.jpg?width=810&height=180" +ANNOUNCEMENT_EMOJI = "<:upvote:354233015842635776>" +DEFAULT_IMAGE_URL = "https://cdn.discordapp.com/attachments/611922107345141760/1227292305556242582/41bannerEisenlowe.png?" INSTRUCTIONS = """\ 1. Title should not use any formatting. 2. "Video" should only be used for YouTube or video links with pretty embeds. diff --git a/scnewsbot/extensions/templates.py b/scnewsbot/extensions/templates.py index 29ff4f2..998533a 100644 --- a/scnewsbot/extensions/templates.py +++ b/scnewsbot/extensions/templates.py @@ -20,7 +20,7 @@ TEMPLATES: dict[str, Announcement] = { PING_PREVIEWS = """\ **Patch Notes** - New Wave: `3.XX Wave X Release` -- PTU Update: `3.XX PTU Update` +- PTU/EPTU/Tech-Preview/Evocati Update: `3.XX PTU Update` - Live Update: `3.XX LIVE Update` **SC News** @@ -40,16 +40,24 @@ PING_PREVIEWS = """\ - JP: `Jump Point` """ IDS = """\ -**Channels** -Patch Notes - `585952222853201941` -SC News - `569635458183856149` -General News - `803341100618219540` +__**Server News:**__ +Channel - `1113146864804573285` +Role - `1113152142300156004` +__**Patch Notes:**__ +Channel - `585952222853201941` +Role - `620025894559547412` +__**SC News:**__ +Channel - `569635458183856149` +Role - `620025828079697920` +__**General News:**__ +Channel - `803341100618219540` +Role - `803343410794594385` -**Roles** -Server News - `1113152142300156004` -Patch Notes - `620025894559547412` -SC News - `620025828079697920` -General News - `803343410794594385` +__**Ping Previews:**__ +[Check here](https://discord.com/channels/82210263440306176/611922107345141760/1228019382454849587) + +__**Posting Locations:**__ +[Check here](https://discord.com/channels/82210263440306176/611922107345141760/1113905662217441330) for a guide on what post types go where. """