Skip to content

Commit 380b7e9

Browse files
committed
first program to automate posting on reddit
1 parent c9f38a5 commit 380b7e9

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

reddit-bot-2.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import praw
2+
3+
reddit = praw.Reddit(
4+
client_id="S48YmERmER0pz0oKgfzn3Q",
5+
client_secret="GqRKs-RccRn5ckPzsjthtKoi3--paw",
6+
user_agent="myBot/0.0.1",
7+
)
8+
9+
reddit.user.me()
10+
11+
reddit.subreddit("test").submit(
12+
title="My first reddit bot",
13+
selftext="Hello, I am a bot created by /u/RichardMiruka1234."
14+
)

0 commit comments

Comments
 (0)