Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
644 changes: 322 additions & 322 deletions src/Bot/discord.py

Large diffs are not rendered by default.

778 changes: 389 additions & 389 deletions src/Bot/guilded_bot.py

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions src/Bot/nerimity/member.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ def set_presence(self, value: int, custom_text: str) -> None:
"""Sets the presence of the bot. NOT CURRENTLY POSSIBLE."""
return

api_endpoint = f"https://nerimity.com/api/users/presence"
api_endpoint = "https://nerimity.com/api/users/presence"

headers = {
"Authorization": GlobalClientInformation.TOKEN,
Expand All @@ -318,7 +318,7 @@ def create_post(self, message_content: str) -> None:
"""Creates a post and publishes it. NOT CURRENTLY POSSIBLE."""
return

api_endpoint = f"https://nerimity.com/api/posts"
api_endpoint = "https://nerimity.com/api/posts"

headers = {
"Authorization": GlobalClientInformation.TOKEN,
Expand All @@ -338,7 +338,7 @@ async def get_feed(self) -> list[Post]:
"""Returns the entire feed the bot currently has. NOT CURRENTLY POSSIBLE."""
return

api_endpoint = f"https://nerimity.com/api/posts/feed"
api_endpoint = "https://nerimity.com/api/posts/feed"

headers = {
"Authorization": GlobalClientInformation.TOKEN,
Expand Down Expand Up @@ -369,4 +369,4 @@ def deserialize(json: dict) -> 'ClientMember':
new_member.badges = int(json["badges"])
new_member.friends = {}

return new_member
return new_member
4 changes: 2 additions & 2 deletions src/Bot/nerimity/post.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def create_comment(self, message_content: str) -> None:
"""Creates a post and publishes it. NOT CURRENTLY POSSIBLE."""
return

api_endpoint = f"https://nerimity.com/api/posts"
api_endpoint = "https://nerimity.com/api/posts"

headers = {
"Authorization": GlobalClientInformation.TOKEN,
Expand Down Expand Up @@ -143,4 +143,4 @@ def deserialize(json: dict) -> 'Post':
new_post.liked_by = [int(i["id"]) for i in json["likedBy"]]
new_post.attachments = json["attachments"]

return new_post
return new_post
4 changes: 2 additions & 2 deletions src/Bot/nerimity_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ async def send_message(endpoint, params):

async def send_iamup():
async with aiohttp.ClientSession() as session:
async with session.post(f"https://status.astroid.cc/monitor/iamup/nerimity") as r:
async with session.post("https://status.astroid.cc/monitor/iamup/nerimity") as r:
if r.status == 200:
print("Sent up status.")
else:
Expand Down Expand Up @@ -170,4 +170,4 @@ async def on_ready(client_info: dict):
print(f"Logged in as {client.account.username}#{client.account.tag}")
asyncio.create_task(iamup_loop())

client.run()
client.run()
Loading
Loading