Skip to content

๐ŸŽถ Reddit bot that gives TWICE lyrics when TWICE or members mentioned.

Notifications You must be signed in to change notification settings

alfredsaveron/twice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

20 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Reddit bot that gives TWICE lyrics when TWICE or members mentioned. ๐ŸŽถ

ํŠธ์™€์ด์Šค๋‚˜ ๋ฉค๋ฒ„๋“ค์ด ์–ธ๊ธ‰๋˜๋ฉด ํŠธ์™€์ด์Šค์—๊ฒŒ ๊ฐ€์‚ฌ๋ฅผ ์ฃผ๋Š” ๋ ˆ๋”ง๋ด‡.

JavaScript

Remember to install the snoowrap and other (?) random libraries (npm install snoowrap) before running the script.

This code checks if the comment or comments includes the word "TWICE" or any of the TWICE member names in the memberNames array. If it finds a match, it randomly selects a TWICE song lyric from the songLyrics array and replies to the comment. The bot then waits for the specified cooldown time before continuing to monitor new comments.

Warning Remember to use the bot responsibly and respect the Reddit API usage guidelines and the rules of the subreddit you're targeting.

TypeScript

Make sure to replace the placeholders (YOUR_USER_AGENT, YOUR_CLIENT_ID, YOUR_CLIENT_SECRET, YOUR_REDDIT_USERNAME, YOUR_REDDIT_PASSWORD, SUBREDDIT_NAME) with your actual Reddit API credentials and subreddit name. Also, feel free to add more lyrics to the array or arrays.

Warning Remember to use the bot responsibly and respect the Reddit API usage guidelines and the rules of the subreddit you're targeting.