Reddit markdown in a text file not transferring to AMP

I am using the python app here, and trying to run what I have made on my PC. When I run it using windows CMD terminal, it works fine, but once I transport it to AMP it doesn’t work anymore. I am trying to have my bot reply and say: Once you are unhooked or escape from the hook, *Off the Record* activates for **60/70/80 seconds**.\n While *Off the Record* is active:\n- Your aura will not be revealed to the Killer.\n- Grunts of pain caused by injuries are reduced by **100%**.\n- You leave no scratch marks while sprinting. as one line. The correct Reddit markdown, for this prompt, is

> **Off the Record:**
> Once you are unhooked or escape from the hook, *Off the Record* activates for **60/70/80 seconds**.  
>  While *Off the Record* is active:  
> - Your aura will not be revealed to the Killer.  
> - Grunts of pain caused by injuries are reduced by **100%**.  
> - You leave no scratch marks while sprinting.  
>
> ^^^This ^^^^message ^^^^was ^^^^drawn ^^^^from ^^^^the ^^^^fog.

When I use the same line in the python app on AMP, the bot generates this markdown:

> **Off the Record:**
> Once you are unhooked or escape from the hook, Off the Record activates for 60/70/80 seconds. While Off the Record is active: Your aura will not be revealed to the Killer. Grunts of pain caused by injuries are reduced by 100%. You leave no scratch marks while sprinting.
>
> ^^^This ^^^^message ^^^^was ^^^^drawn ^^^^from ^^^^the ^^^^fog.

This causes it to lose all the page breaks and bullets. Why is AMP causing the difference? Everything else has worked fine 1:1 after putting it in AMP.

Hard to tell without understanding how the bot is configured to send the message

But if it just a matter of the bot communicating directly with reddit, then AMP shouldn’t have anything to do with it

I run the bot locally on my PC first and the exact same code renders perfectly on Reddit, the blockquote, bullets, and line breaks all show up. As soon as I move the same code and files to AMP Python app runner the output changes, first it doesnt recognize some things the same, one example is it only loads ~160 “rules” I have set up to reply instead of 237 on my local pc.

Just random stuff isnt translating over for some reason.

Given the Python App Runner provides a framework that is highly configurable, you will have to show how you configured the instance, because no two setups will be the same

Bear in mind that the Runner runs the bot in a venv - have you set that up so that it matches the environment running outside AMP? Such as all dependencies installed in the venv? Are you using the same Python version? Etc

1 Like

Ahhh thank you! I did a reinstall and everything and was able to get it working, sorry for my blunt responses I am still pretty new to this stuff! Thanks again for your help!!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.