You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-4
Original file line number
Diff line number
Diff line change
@@ -35,10 +35,7 @@ As well as messaging them a custom message upon joining the Slack team.
35
35
36
36
# Installing Dependencies
37
37
PantherBot requires several python libraries to function. These can be easily installed with the `setup.bat` or `setup.sh` file.
38
-
```
39
-
sudo setup.sh
40
-
```
41
-
`setup.sh` should be run with elevated privileges to ensure dependencies install correctly (this is an issue for most unless you're using a virtualenv).
38
+
`setup.sh` should be run with elevated privileges to ensure dependencies install correctly (this is an issue for most unless you're using a virtualenv) (`sudo sh setup.sh` should be good enough).
42
39
Likewise, pip may request your permission or a prompt if using the `setup.bat` file. If it fails, try using administrative privileges.
BOT_NAME='PantherBot'#Set to whatever you would like the Bot to post his name as in Slack
16
16
BOT_ICON_URL='http://i.imgur.com/QKaLCX7.png'#Set to change whatever the profile picture is when the Bot posts a message
17
17
SLACK=True#Set to False to disable connecting to the Slack RTM API... for whatever reason
18
18
GOOGLECAL=False#Set to False to disable connecting and enabling the Google Calendar API integration
19
-
LOGGER=False#Set to True to get "detailed" error messages in the console. These error messages can vary from very helpful to utterly useless
19
+
LOGGER=True#Set to True to get "detailed" error messages in the console. These error messages can vary from very helpful to utterly useless
20
20
GOOGLECALSECRET="PantherBot-test.json"#Can make this a system environment variable if you really want to be careful
21
21
NEWUSERGREETING=True#Set to True to send users that join the Slack Team a message (GREETING), appended with a link (LINK) (used for whatever you want, in our case, a "How to Use Slack" document)
22
22
LINK="https://test.link.pantherhackers.com"#link to be appended to GREETING
23
23
GREETING="Greetings newcomer! This is your friendly neighborhood PantherBot, a bot created by your fellow members of PantherHackers! We just wanted to say hello, and welcome you to the family! If Slack seems intimidating, have no fear! If you've ever messed with the likes of Discord, it is a lot like that. If you haven't messed with that either, again, no worries.\nTo get started, you have your default channels on the left (expand the menu by tapping the Panther icon in the top left if you are on mobile). To join more channels, click/tap on the plus button next to \"CHANNELS\" and you'll be well on your way.\nIf you are interested to learn more about Slack, you can go to our custom tutorial here: "+LINK
24
-
ADMIN= ["U25PPE8HH", "U262D4BT6", "U0LAMSXUM", "U3EAHHF40"] #Contains user IDs for those allowed to run $ commands
24
+
USER_LIST= []
25
+
ADMIN= [] #["U25PPE8HH", "U262D4BT6", "U0LAMSXUM", "U3EAHHF40"] Contains user IDs for those allowed to run $ commands
25
26
26
27
#initialize basic logging to see errors more easily
27
28
ifLOGGER==True:
@@ -41,10 +42,7 @@
41
42
42
43
#function that is called whenever there is an event, including status changes, join messages, typing status, emoji reactions, everything
43
44
defon_message(ws, message):
44
-
#converts to usable string format
45
-
s=message.encode('ascii')
46
-
47
-
#converts to JSON so we can parse through it easier
0 commit comments