mirror of
https://github.com/hencaric/SCNewsBot.git
synced 2026-08-17 06:56:03 +01:00
Initial Commit
This commit is contained in:
@@ -56,12 +56,27 @@ class CoreCog(commands.Cog, name="Core"):
|
|||||||
except discord.Forbidden:
|
except discord.Forbidden:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
# @commands.Cog.listener()
|
||||||
|
# async def on_message(self, message):
|
||||||
|
# if message.channel.id == 649390966259580929 and message.author.id != 1091116499936223252:
|
||||||
|
# if message.embeds:
|
||||||
|
# for embed in message.embeds:
|
||||||
|
# reply_channel = self.bot.get_channel(611922107345141760)
|
||||||
|
# if "Patch Notes" in embed.title:
|
||||||
|
# await reply_channel.send(f"<@&159107041896562688> CIG has published new [Patch Notes](<{embed.url}>).")
|
||||||
|
# elif "Galactapedia" in embed.title:
|
||||||
|
# await reply_channel.send(f"<@&159107041896562688> CIG has published a new [Galactapedia update](<{embed.url}>).")
|
||||||
|
# elif "This Week in Star Citizen" in embed.title:
|
||||||
|
# await reply_channel.send(f"<@&159107041896562688> CIG has published a new [TWISC](<{embed.url}>).")
|
||||||
|
# elif "Monthly Report" in embed.title:
|
||||||
|
# await reply_channel.send(f"<@&159107041896562688> CIG has published a new [Monthly Report](<{embed.url}>).")
|
||||||
|
|
||||||
@commands.hybrid_command(description="Shows you some info about the bot.")
|
@commands.hybrid_command(description="Shows you some info about the bot.")
|
||||||
async def info(self, ctx: commands.Context) -> None:
|
async def info(self, ctx: commands.Context) -> None:
|
||||||
embed = discord.Embed(
|
embed = discord.Embed(
|
||||||
color=self.bot.config.embed_color,
|
color=self.bot.config.embed_color,
|
||||||
title="Info",
|
title="Info",
|
||||||
description="Empire Report is an instance of the SC News Bot created for the r/starcitizen Org Hub\n Discord server to help with writing news posts.",
|
description="The SC News Bot is a bot created for the r/starcitizen Discord server to help with writing news posts.",
|
||||||
)
|
)
|
||||||
# embed.add_field(
|
# embed.add_field(
|
||||||
# name="Version", value=f"v{self.bot.version}+{self._get_version()}"
|
# name="Version", value=f"v{self.bot.version}+{self._get_version()}"
|
||||||
@@ -71,7 +86,7 @@ class CoreCog(commands.Cog, name="Core"):
|
|||||||
)
|
)
|
||||||
embed.add_field(
|
embed.add_field(
|
||||||
name="Authors",
|
name="Authors",
|
||||||
value=f"Ian (<@1088892000348151839>), and mudkip (<@998070081709932654>)",
|
value=f"Ian (<@288522211164160010>), and mudkip (<@998070081709932654>)",
|
||||||
)
|
)
|
||||||
view = discord.ui.View()
|
view = discord.ui.View()
|
||||||
view.add_item(
|
view.add_item(
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ import discord
|
|||||||
from utils import can_publish_announcements
|
from utils import can_publish_announcements
|
||||||
|
|
||||||
ANNOUNCEMENT_BUILDER_TIMEOUT = 1200
|
ANNOUNCEMENT_BUILDER_TIMEOUT = 1200
|
||||||
ANNOUNCEMENT_EMOJI = "<:upvote:354233015842635776>" # <:upvote:354233015842635776>
|
ANNOUNCEMENT_EMOJI = "<:upvote:354233015842635776>"
|
||||||
DEFAULT_IMAGE_URL = "https://media.discordapp.net/attachments/1062905729532571719/1123340546979676311/NewsDefault.jpg?width=810&height=180"
|
DEFAULT_IMAGE_URL = "https://cdn.discordapp.com/attachments/1113146864804573285/1214590384001515560/41bannerEisenlowe.png?ex=65f9aa71&is=65e73571&hm=1cd99b04925a778d05b6d1cd1ae804af083760b0c11cc7ae96d44491b1fcb3ff&"
|
||||||
INSTRUCTIONS = """\
|
INSTRUCTIONS = """\
|
||||||
1. Title should not use any formatting.
|
1. Title should not use any formatting.
|
||||||
2. "Video" should only be used for YouTube or video links with pretty embeds.
|
2. "Video" should only be used for YouTube or video links with pretty embeds.
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ PING_PREVIEWS = """\
|
|||||||
- Dynamic Event: `Event Name PU/PTU`
|
- Dynamic Event: `Event Name PU/PTU`
|
||||||
|
|
||||||
**General News**
|
**General News**
|
||||||
|
- This Week in Star Citizen: 'This Week in Star Citizen'
|
||||||
- Sneak Peek: `Weekly Sneak Peek`
|
- Sneak Peek: `Weekly Sneak Peek`
|
||||||
- Lore Post: `Lore Post: Name`
|
- Lore Post: `Lore Post: Name`
|
||||||
- Dev Reply: `Dev Reply`
|
- Dev Reply: `Dev Reply`
|
||||||
@@ -40,19 +41,20 @@ PING_PREVIEWS = """\
|
|||||||
- JP: `Jump Point`
|
- JP: `Jump Point`
|
||||||
"""
|
"""
|
||||||
IDS = """\
|
IDS = """\
|
||||||
__**Channels:**__
|
__**Server News:**__
|
||||||
Server News - `1113146864804573285`
|
Channel - `1113146864804573285`
|
||||||
Patch Notes - `585952222853201941`
|
Role - `1113152142300156004`
|
||||||
SC News - `569635458183856149`
|
__**Patch Notes:**__
|
||||||
General News - `803341100618219540`
|
Channel - `585952222853201941`
|
||||||
|
Role - `620025894559547412`
|
||||||
|
__**SC News:**__
|
||||||
|
Channel - `569635458183856149`
|
||||||
|
Role - `620025828079697920`
|
||||||
|
__**General News:**__
|
||||||
|
Channel - `803341100618219540`
|
||||||
|
Role - `803343410794594385`
|
||||||
|
|
||||||
__**Roles:**__
|
__**Posting Locations:**__
|
||||||
Server News - `1113152142300156004`
|
|
||||||
Patch Notes - `620025894559547412`
|
|
||||||
SC News - `620025828079697920`
|
|
||||||
General News - `803343410794594385`
|
|
||||||
|
|
||||||
__**Where to post what:**__
|
|
||||||
[Check here](https://discord.com/channels/82210263440306176/611922107345141760/1113905662217441330) for a guide on what post types go where.
|
[Check here](https://discord.com/channels/82210263440306176/611922107345141760/1113905662217441330) for a guide on what post types go where.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user