An Interest In:
Web News this Week
- April 2, 2024
- April 1, 2024
- March 31, 2024
- March 30, 2024
- March 29, 2024
- March 28, 2024
- March 27, 2024
How I run code on twitter
Ever ran code right on twitter? No, right? Now you can!
Imagine writing code in twitter and someone runs the code for you and reply with output. No, it's not possible that a human will reply you with the output every time.
Here my twitter bot @coderunnerbot comes handy. It will reply you with the output of your code every time you mention it in your tweet containing the code and use the command run
.
Still not sure how to use it? Here is how
Just mention @coderunnerbot in your tweet followed by the command run
followed by the code you want to run in markdown format. @coderunnerbot will reply you with the output of your code.
Prasant kumar@decodeprasant18:01 PM - 16 Aug 2022
What else can coderunner bot do?
It can also render your html, css, js code
Mention @coderunnerbot in your tweet followed by the command render
followed by the code you want to render in markdown format.
Prasant kumar@decodeprasant@coderunnerbot render
```html
<h1 id="t"></h1>
```
```css
#t{
font-size: 5rem;
}
body{
background: #eee;
}
```
```js
setInterval(()=>{
document.getElementById('t').innerHTML = new Date().toLocaleString();
}, 1000)
```10:49 AM - 18 Aug 2022
Still confused? Here is the guide on how to use the bot.
Thanks for reading!
Original Link: https://dev.to/prasant/how-i-run-code-on-twitter-3h79
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To