Skip to content

Commit

Permalink
updated file structure
Browse files Browse the repository at this point in the history
  • Loading branch information
StephanAkkerman committed Nov 8, 2023
1 parent d37b045 commit e042059
Show file tree
Hide file tree
Showing 10 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

This is a Discord bot written in Python, with the purpose of providing an overview of the financial markets discussed on Twitter.
The bot is able to distuingish multiple markets based on the tickers mentioned in the tweets and provides detailed information of the financial data discussed in a Tweet. Below you can view what this bot does with a financial tweet.
<details><summary>Tweet Embed</summary><img src="https://github.com/StephanAkkerman/FinTwit_Bot/blob/main/img/tweet_example.png" width="500" /></details>
<details><summary>Tweet Embed</summary><img src="https://github.com/StephanAkkerman/FinTwit_Bot/blob/main/img/examples/tweet_example.png" width="500" /></details>

## Important
To run this bot you need to host it yourself, meaning that you should have something that functions as a server. I use my Raspberry PI for this, but there are many other options available for hosting a Discord bot, such as virtual private servers provided by Google, Amazon, Microsoft, and more.
Expand Down Expand Up @@ -89,7 +89,7 @@ Or follow these written instructions:
- Invite the bot to your server.
Then you need to add the custom emojis to the server (can be skipped).
- Download the custom emoji pictures [here](https://github.com/StephanAkkerman/FinTwit_Bot/tree/main/emojis).
- Download the custom emoji pictures [here](https://github.com/StephanAkkerman/FinTwit_Bot/tree/main/img/emojis).
- Add them to your server ([instructions](https://support.discord.com/hc/en-us/articles/360036479811-Custom-Emojis)).
- You can add any exchange emoji, for instance FTX, as long as the image is supported by Discord and the name is the same name as the exchange.
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Binary file added img/icons/coingecko.ico
Binary file not shown.
Binary file removed img/icons/coingecko.png
Binary file not shown.
4 changes: 1 addition & 3 deletions src/cogs/loops/nfts.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,9 @@ async def gc_trending(self):
inline=True,
)

file = discord.File("img/icons/coingecko.png", filename="coingecko.png")

e.set_footer(
text="\u200b",
icon_url="attachment://coingecko.png",
icon_url="https://github.com/StephanAkkerman/fintwit-bot/blob/main/img/icons/coingecko.ico",
)

await self.trending_channel.send(embed=e)
Expand Down

0 comments on commit e042059

Please sign in to comment.