root %!s(int64=2) %!d(string=hai) anos
pai
achega
465e0e6b8e
Modificáronse 4 ficheiros con 7 adicións e 10 borrados
  1. 3 3
      README.md
  2. 3 3
      bot/events/angels.py
  3. 1 1
      bot/query/initialise_database.py
  4. 0 3
      requirements.txt

+ 3 - 3
README.md

@@ -2,8 +2,8 @@
 A Discord robot for the Angels Discord written in Python.
 
 ## Requirements
-* Python3
-* PostgreSQL (libpq-dev) 
+* Python3 & the python3-dev pacakge
+* PostgreSQL
 * Web server gateway interface like uWSGI or Gunicorn
 * A discord token
 
@@ -29,4 +29,4 @@ Expose django to the web. (TODO: more details)
 * https://fomantic-ui.com/introduction/getting-started.html
 
 ### Theming
-* https://fomantic-ui.com/usage/theming.html
+* https://fomantic-ui.com/usage/theming.html

+ 3 - 3
bot/events/angels.py

@@ -12,9 +12,9 @@ class AngelEvents(commands.Cog):
 
 	@commands.Cog.listener()
 	async def on_message(self, message: discord.Message):
-		feed_channels = [1184948763614253187]
+		feed_channels = [1184948763614253187, 1185045883985858610]
 		if message.channel.id in feed_channels:
-			news_channel = self.bot.get_channel(971796738484625468)
+			news_channel = self.bot.get_channel(1002655345795158077)
 			if message.type == discord.MessageType.channel_follow_add:
 				source_channel = self.bot.get_channel(message.reference.channel_id)
 				if source_channel:
@@ -29,4 +29,4 @@ class AngelEvents(commands.Cog):
 						source_invite = await source_channel.create_invite(unique=False, reason="Linking back to discord of which news is being repeated.")
 						msg = await news_channel.send("**[" + message.author.name + "](<" + source_invite.url + ">)**:\n\n" + message.clean_content)
 					else:
-						await news_channel.send("**" + message.author.name + "**:\n\n" + message.clean_content)
+						await news_channel.send("**" + message.author.name + "**:\n\n" + message.clean_content)

+ 1 - 1
bot/query/initialise_database.py

@@ -4,7 +4,7 @@ async def init_db(pg):
             guild (\
                 id SERIAL PRIMARY KEY, \
                 guild_id BIGINT UNIQUE NOT NULL, \
-                output_channel BIGINT REFERENCES channel (channel_id), \
+                output_channel BIGINT REFERENCES channel (channel_id),\
                 report_deleted BOOL DEFAULT FALSE, \
                 report_edited BOOL DEFAULT FALSE\
             )\

+ 0 - 3
requirements.txt

@@ -1,6 +1,3 @@
 discord.py==2.1.0
 asyncpg==0.26.0
-Django==4.1
 psycopg2-binary==2.9.5
-django-settings-export==1.2.1
-django-semanticui-forms==1.6.5