Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
P
projet i2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Samy Haffoudhi
projet i2
Commits
bb42b780
Commit
bb42b780
authored
Dec 08, 2021
by
Samy Haffoudhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
maj variables env
parent
23af4a65
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
12 deletions
+2
-12
.env
bot/.env
+2
-1
bot.py
bot/bot.py
+0
-11
No files found.
bot/.env
View file @
bb42b780
SLACK_TOKEN=xoxb-17091197537-2808341799910-Rt1jxyQ7BTZ9HU7TmtYBqY1m
export SLACK_BOT_TOKEN=xoxb-17091197537-2808341799910-Rt1jxyQ7BTZ9HU7TmtYBqY1m
export SLACK_SIGNING_SECRET=bde8ff61717e3e84be1e9b21f159a1d7
bot/bot.py
deleted
100644 → 0
View file @
23af4a65
import
slack
import
os
from
pathlib
import
Path
from
dotenv
import
load_dotenv
env_path
=
Path
(
'.'
)
/
'.env'
load_dotenv
(
dotenv_path
=
env_path
)
client
=
slack
.
WebClient
(
token
=
os
.
environ
[
'SLACK_TOKEN'
])
client
.
chat_postMessage
(
channel
=
'#3_proj_i2'
,
text
=
"Salut!"
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment