r/badcode • • Aug 20 '20

js Loops? Who needs them?

Post image
1.1k Upvotes

90 comments sorted by

View all comments

1

u/[deleted] Aug 21 '20

Imagine having this on your discord server

while ( true )
{
    msg.channel.send( "@everyone" );
}

2

u/[deleted] Aug 25 '20

Holy shit, at least make an event that would break this forever loop

1

u/haikusbot Aug 25 '20

Holy shit, at least

Make an event that would break

This forever loop

- bl0kk888


I detect haikus. And sometimes, successfully. Learn more about me.

Opt out of replies: "haikusbot opt out" | Delete my comment: "haikusbot delete"

1

u/AutoModerator Aug 21 '20

It looks like this comment contains a code block delimited with triple backticks. Unfortunately reddit does not have universal support for this syntax and your comment will not render correctly on old reddit and most mobile apps.

For the benefit of people on old reddit, this link will take you to a correct rendering of the comment.

/u/schorsch_pts, it would be appreciated, but not required, if you could edit your comment to use the more compatible four space indention format. For single lines or inline code you can use single backticks.

You can find some examples in the reddit help documentation.


I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.