mirror of
https://github.com/hencaric/SCNewsBot.git
synced 2026-08-16 22:46:03 +01:00
Merge branch 'main' of https://github.com/hencaric/SCNewsBot
This commit is contained in:
22
README.md
22
README.md
@@ -1,15 +1,11 @@
|
|||||||
# SC News Bot
|
# scnewsbot
|
||||||
The production version of the SC News Bot used by the r/StarCitizen Discord server for the production of news posts.
|
A bot for the r/starcitizen Discord server.
|
||||||
|
|
||||||
- Join https://discord.gg/starcitizen for the best Star Citizen community on the internet
|
## Installation
|
||||||
|
1. Make sure you have installed [Python](https://python.org) (>=3.11), [Git](https://git-scm.org), and [Poetry](https://pypi.org/project/poetry).
|
||||||
|
2. Clone the repository to your hard drive. (`git clone https://github.com/mudkipdev/scnewsbot`)
|
||||||
|
3. Run `cd scnewsbot` and `poetry install` to install the required dependencies.
|
||||||
|
4. Copy the `example.config.toml` and `example.env` files to `config.toml` and `.env` respectively.
|
||||||
|
5. Edit the config files to your liking, then run the bot using `poetry run python scnewsbot` (This might also be `py`, `python3` or `python3.11` depending on your operating system).
|
||||||
|
|
||||||
## Version
|

|
||||||
1.0.4
|
|
||||||
|
|
||||||
## Authors
|
|
||||||
- Ian (hencaric)
|
|
||||||
https://github.com/hencaric
|
|
||||||
- mudkip
|
|
||||||
https://github.com/mudkipdev
|
|
||||||
|
|
||||||

|
|
||||||
|
|||||||
@@ -62,16 +62,31 @@ 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="SCNewsBot is a Discord bot created for the r/starcitizen\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(
|
|
||||||
name="Version", value=f"v{self.bot.version}+{self._get_version()}"
|
|
||||||
)
|
)
|
||||||
|
# embed.add_field(
|
||||||
|
# name="Version", value=f"v{self.bot.version}+{self._get_version()}"
|
||||||
|
# )
|
||||||
embed.add_field(
|
embed.add_field(
|
||||||
name="Library", value=f"discord.py v{discord.__version__}", inline=False
|
name="Library", value=f"discord.py v{discord.__version__}", inline=False
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -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`
|
||||||
|
|||||||
Reference in New Issue
Block a user