# How to Share Your Python Trading Bot Activity on Discord in 3 Minutes > MetaTrader 5 Python Trading Bot **Published by:** [The Crypto - AI - Cyber Disruption Continuum](https://paragraph.com/@appnologyjames/) **Published on:** 2024-08-06 **Categories:** python, trading bot, helpful python functions **URL:** https://paragraph.com/@appnologyjames/how-to-share-your-python-trading-bot-activity-on-discord-in-3-minutes ## Content Building your own Python Trading Bot can be a ton of fun. The process of building your own strategies, making trades, then letting it run in the background can be incredible.When you get it right, it’s also profitable!So let’s learn how to share your Trading Bot activity on Discord.Check Out My MetaTrader 5 Python Trading Bot Serieshttps://paragraph.xyzHow to Build a MetaTrader 5 Python Trading Bot: Getting StartedGet started building your MetaTrader 5 Expert Advisor. Using Python, I'll show you everything you need to build it for yourself.OutcomeBy the end of this episode, you’ll have your own Discord server up and running and be sharing live updates of your Trading Bot activity.Here’s an example of one of my free channels here, with a snapshot of the current activity below:Free Signal Bot on Discord, providing free signals for the USDJPY Raw currency pair. Part of the article How to Share Your Python Trading Bot Activity on Discord in 3 MinutesAbout DiscordDiscord is a great choice for creating a collaborative sharing platform for your trading bot. It offers a great range of features and easily accessible REST API allowing you to easily post messages to your channel. It is cross-platform and runs effectively in a browser if you choose.With a couple of extra options (not covered here), you can extend Discord channel functionality to include slash commands and more.Best of all, the free version has all the features you might want.Create A ServerTo get started, create a server in your Discord. To do this:Navigate to your Discord channel listClick the + button on the left for “Add a Server”Choose a template or Create My OwnFollow the promptsAll done.I’ve called my server Creative Appnologies.Create a ChannelTo create a channel:Navigate to your channelChoose the + sign in the TEXT CHANNELS sectionChoose a nameChoose createAll done.I called mine #free_indicators and you can access it here. It provides a list of signals on the USDJPY Raw foreign exchange (FOREX) pair.Create a WebhookThe actual posting of text into your channel will be done with a webhook. Webhooks are a lightweight form of event-driven communications between two API’s — RedHat has a great write-up about them if you’d like to know more.To create your webhook, select the gear icon from your channel, and choose ‘Edit Channel’#free_indicators channel settingsNow:Navigate to ‘Integrations’Choose ‘Webhooks’Choose ‘New Webhook’Name your Webhook BotUpload an image if you’d like :)Choose “Copy Webhook URL”Python CodeThe Python code for a generic webhook send is as follows:from discordwebhook import Discord # Function to send a message to Discord def send_message_to_discord(message, webhook): discord_send = Discord(url=webhook) discord_send.post(content=message)And that’s it. Just a couple of lines of code.Message. This is the message to share.Webhook. This is the URL you copied earlier.You can extend this function as needed. For instance, in the Discord channel I’ve shared, I undertake a couple of operations to create the correct string.Some RecommendationsAlthough this functionality will get you up and running, here’s a couple of other things to check out:Permissions. Discord is notorious for unsafe sharing and permissions. Take some time to go through the permissions and get them suited for your needs.Importing the Webhook. As a general rule, sensitive items such as webhooks should not be hardcoded. In my setup, I import the webhook url from a settings file. ## Publication Information - [The Crypto - AI - Cyber Disruption Continuum](https://paragraph.com/@appnologyjames/): Publication homepage - [All Posts](https://paragraph.com/@appnologyjames/): More posts from this publication - [RSS Feed](https://api.paragraph.com/blogs/rss/@appnologyjames): Subscribe to updates ## Optional - [Collect as NFT](https://paragraph.com/@appnologyjames/how-to-share-your-python-trading-bot-activity-on-discord-in-3-minutes): Support the author by collecting this post - [View Collectors](https://paragraph.com/@appnologyjames/how-to-share-your-python-trading-bot-activity-on-discord-in-3-minutes/collectors): See who has collected this post