←︎ chir.py :: 8e8a043


1
commit 8e8a04353f9f2f5a5aff244e2908359c9d58a449 (HEAD -> master, origin/master)
2
Author: acidvegas <acid.vegas@acid.vegas>
3
Date:   Thu Apr 9 22:06:32 2020 -0400
4
5
    fixed an issue pointed out by impshun
6
---
7
 LICENSE            |  2 +-
8
 README.md          | 15 +++++++++++----
9
 chir.py/twitter.py |  4 ++--
10
 3 files changed, 14 insertions(+), 7 deletions(-)
11
12
diff --git a/LICENSE b/LICENSE
13
index 69997e8..d521bd0 100644
14
--- a/LICENSE
15
+++ b/LICENSE
16
@@ -1,6 +1,6 @@
17
 ISC License
18
 
19
-Copyright (c) 2019, acidvegas <acid.vegas@acid.vegas>
20
+Copyright (c) 2020, acidvegas <acid.vegas@acid.vegas>
21
 
22
 Permission to use, copy, modify, and/or distribute this software for any
23
 purpose with or without fee is hereby granted, provided that the above
24
diff --git a/README.md b/README.md
25
index 2a37055..ed71c80 100644
26
--- a/README.md
27
+++ b/README.md
28
@@ -1,24 +1,31 @@
29
-###### Requirments
30
+# chir.py
31
+> twitter news bot that builds followers, posts, and bitcoin via ppc links
32
+
33
+## Requirments
34
 * [FeedParser](http://pypi.python.org/pypi/feedparser)
35
 * [Tweepy](http://pypi.python.org/pypi/tweepy)
36
 * [ndg-httpsclient](http://pypi.python.org/pypi/ndg-httpsclient) *(Install only if you are getting an "InsecurePlatformWarning" error.)*
37
 
38
-###### Instructions
39
+## Instructions
40
 Register a Twitter account, and [sign up](http://dev.twitter.com/apps/new) for a new developer application.
41
 
42
 Go to your new application settings "Keys and Access Tokens" tab.
43
+
44
 Click the "Create Your Access Token" button on the bottom.
45
+
46
 These will be used in the config to connect to your Twitter account.
47
+
48
 Go to your new application settings "Permissions".
49
+
50
 Change your access to "Read, Write and Access direct messages".
51
 
52
 Register a [CoinURL](http://coinurl.com/) account and get your [api key](http://coinurl.com/profile-api.php).
53
+
54
 The random number you will see after "uuid" is your unique user id that will be use in the config.
55
 
56
 Edit your `config.py` and change the Twitter & CoinURL API settings.
57
 
58
-###### Mirrors
59
+## Mirrors
60
 - [acid.vegas](https://acid.vegas/chir.py) *(main)*
61
-- [SuperNETs](https://git.supernets.org/acidvegas/chir.py)
62
 - [GitHub](https://github.com/acidvegas/chir.py)
63
 - [GitLab](https://gitlab.com/acidvegas/chir.py)
64
diff --git a/chir.py/twitter.py b/chir.py/twitter.py
65
index e5638c1..da12fbf 100644
66
--- a/chir.py/twitter.py
67
+++ b/chir.py/twitter.py
68
@@ -40,12 +40,12 @@ class boost_loop(threading.Thread):
69
         while True:
70
             try:
71
                 if 'boost_tweet' in locals(): api.destroy_status(boost_tweet.id)
72
-                boost_tweet = api.update_status('Support our Twitter! #' + ' #'.join(config.boost))
73
+                boost_tweet = api.update_status('Support our Twitter! #' + ' #'.join(config.boost_keywords))
74
                 debug.alert('Re-posted boost tweet.')
75
             except tweepy.TweepError as ex:
76
                 debug.error('Error occured in the boost loop', ex)
77
             finally:
78
-                random.shuffle(config.boost)
79
+                random.shuffle(config.boost_keywords)
80
                 time.sleep(60*5)
81
 
82
 class favorite_loop(threading.Thread):