Skip to content

Commit f4ec9cf

Browse files
doc: added example file and enhanced README description
1 parent c5accfa commit f4ec9cf

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,13 @@ Feel free to use it.
88

99
## Usage
1010
Simply create some text-file w/ the tweets in it separated by `§§§`. Run the script with:<br>
11-
`twitter-bot.py <file> <number of seconds to wait>`
11+
`twitter-bot.py <file> <number of seconds to wait>`
12+
13+
Given the `example.txt` file containing two sample tweets, you can call
14+
the script as follows:
15+
16+
```bash
17+
python twitter-bot.py example.txt 10
18+
```
19+
20+
This will publish both tweets with ten seconds between each.

example.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
First tweet this day!
2+
3+
#100DaysOfCode | #coding | #Python
4+
5+
§§§
6+
7+
Second tweet, which is separated by the first one using the given separator!
8+
Coding is fun.
9+
10+
#coding | #Python

0 commit comments

Comments
 (0)