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
- Add `<your-url>/github/events` to your organization or repository's webhooks.
37
+
- Set "Content type" to `application/json`
38
+
- Check the "Send me everything" radio button
39
+
40
+
#### 3. Connect to Slack
41
+
42
+
- Find and replace every instance of `<your-url>` in the [provided manifest](https://github.com/BURG3R5/github-slack-bot/blob/master/bot_manifest.yml) with whatever your server's URL is.
43
+
- Go to [link](https://api.slack.com/apps) and create a new app using the edited manifest.
44
+
- Install the app to your Slack workspace.
45
+
46
+
#### 4. Environment variables
47
+
48
+
- Copy `.env.sample` to `.env`.
49
+
- Set `DEBUG` to 0 and the other variables to appropriate values.
50
+
51
+
#### 5. Create a virtual environment
52
+
53
+
```
54
+
$ python -m venv venv
55
+
```
56
+
Or, if your system contains both Python 2 and Python 3, use `python3`.
57
+
58
+
#### 6. Activate your virtual environment
59
+
60
+
MacOS and Linux:
61
+
```
62
+
$ source venv/bin/activate
63
+
```
64
+
65
+
Windows:
66
+
```
67
+
> venv\Scripts\activate
68
+
```
69
+
70
+
#### 7. Install dependencies
71
+
72
+
```
73
+
$ pip install -r requirements.txt
74
+
```
75
+
76
+
Or, if your system contains both Python 2 and Python 3, use `pip3`.
77
+
78
+
#### 8. Run the bot
79
+
80
+
```
81
+
$ python main.py
82
+
```
83
+
19
84
### Setup for development
20
85
21
86
#### 0. Requirements:
@@ -37,10 +102,8 @@ $ python -m venv venv
37
102
```
38
103
Or, if your system contains both Python 2 and Python 3, use `python3`.
39
104
40
-
41
105
#### 3. Activate your virtual environment
42
106
43
-
44
107
MacOS and Linux:
45
108
```
46
109
$ source venv/bin/activate
@@ -63,16 +126,16 @@ $ pip install pre-commit
63
126
$ pre-commit install
64
127
```
65
128
66
-
#### 6. Get the environment variables from another contributor
129
+
#### 6. Get the environment variables from a maintainer
67
130
#### 7. [Download and configure ngrok](https://betterprogramming.pub/ngrok-make-your-localhost-accessible-to-anyone-333b99e44b07)
68
-
#### 8. Send your generated URL to MDG org admins
131
+
#### 8. Send your generated URL to a maintainer
69
132
#### 9. Run the bot
70
133
71
134
```
72
135
$ python main.py
73
136
```
74
137
75
-
## Contributors ✨
138
+
###Contributors ✨
76
139
77
140
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
description: Concisely and precisely informs users of events on GitHub.
4
+
background_color: "#000000"
5
+
long_description: Concisely and precisely informs users of events on GitHub. Subscribe to any number of events using the `/subscribe` command. Get more usage instructions using the `/help` command. Source code at https://github.com/BURG3R5/github-slack-bot
6
+
features:
7
+
bot_user:
8
+
display_name: GitHubBot
9
+
always_online: true
10
+
slash_commands:
11
+
- command: /subscribe
12
+
url: <your-url>/slack/commands
13
+
description: Subscribe to events in a GitHub repository
0 commit comments