Slide 1

Slide 1 text

ʲ৴ݰύΠ ΦϯϥΠϯಡॻձ ୈ஄ -5ʳ PythonͰ slackͷ ࠔΓ͝ͱΛԿͱ͔ͯ͠Έͨᶃ 2020. 9. 9 ͠Έͣ Ώ͏͖ 1

Slide 2

Slide 2 text

͓·͑୭Αʁ ͠Έͣ Ώ͏͖ ● ࢁསݝߕ෎ࢢग़਎ɺ౦ژʹग़Ք͗த ● ϞόΠϧΞϓϦ ΤϯδχΞ(Android/iOS) ● Python ͸৴ݰύΠͰ͞ΘΔ͘Β͍ 2

Slide 3

Slide 3 text

ં֯ͷ LT ͳͷͰɺ Python ͰࠔΓ͝ͱΛ ղܾ͍ͨ͠ʂ 3

Slide 4

Slide 4 text

ۀ຿Ͱͷ࠷ۙͷࠔΓ͝ͱ 4 ձࣾ Slack ͷνϟϯωϧ͕૿͑͗ͯ͢୳͢ͷ͕େมʂ શࣾ࿈བྷ ܽ੮࿈བྷ ߪೖਃ੥ ࡶஊ ։ൃؔ࿈৘ใڞ༗ ֤छϩάग़ྗ ֤Ҋ݅ͷνʔϜ࿈བྷ χϡʔεڞ༗ πʔϧ༡ͼ৔ ֤ϝϯόʔͷ෼ใ ΠϕϯτࢀՃใࠂ FUD ׆ಈͷແ͍νϟϯωϧ͸Ϧετ͔ΒӅ͍ͨ͠

Slide 5

Slide 5 text

աڈͷ LT Ͱ΋ Slack API Λ͞Θ͍ͬͯΔͷͰɺ 5

Slide 6

Slide 6 text

ٱ͠ৼΓʹ Python ίʔυॻͧ͘ ʙ !! 6

Slide 7

Slide 7 text

ͱࢥ͚ͬͨͲɺط੡ͷπʔϧΛݟ͚ͭ·ͨ͠ 7

Slide 8

Slide 8 text

Symantec/slack-autoarchive ● Python Ͱॻ͔Εͨ Slack ༻ ࣗಈΞʔΧΠϒ εΫϦϓτ ● աڈ೔ؒͰʢCPUҎ֎ͷʣϝοηʔδ͕ͳ͍νϟϯωϧΛ ࣗಈͰΞʔΧΠϒ͢Δ ● ΞʔΧΠϒͤͨ͘͞ͳ͍νϟϯωϧΛࢦఆՄೳ ʢϗϫΠτϦετʣ 8

Slide 9

Slide 9 text

αΫοͱಋೖͯ͠Έͨ 9

Slide 10

Slide 10 text

ᶃ ϦϙδτϦΛ Fork 10

Slide 11

Slide 11 text

ᶄ Slack API Token Λऔಘɾઃఆ 11 API Token

Slide 12

Slide 12 text

ᶅ GitHub Actions ϫʔΫϑϩʔ࡞੒ ● ຖ݄೔ 9:00AM(JST) ʹ࣮ߦ ● ೔Ҏ্ϝοηʔδ͕ແ͍ νϟϯωϧ͕ର৅ͱͳΔΑ͏ ઃఆ ● ϗϫΠτϦετΛ؀ڥม਺Ͱ ઃఆ 12 name: CI on: schedule: - cron: "0 0 1 * *" jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Set up Python 3.8 uses: actions/setup-python@v1 with: python-version: 3.8 - name: Install dependencies run: | pip install -r requirements.txt - name: Run auto-archive run: | SLACK_TOKEN=$SLACK_TOKEN ¥ DRY_RUN=$DRY_RUN ¥ python slack_autoarchive.py env: SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }} DRY_RUN: false DAYS_INACTIVE: 180 WHITELIST_KEYWORDS: 'general,times_' ADMIN_CHANNEL: activity .github/workflows/main.yml

Slide 13

Slide 13 text

݁ՌɺࣗಈͰΞʔΧΠϒ͞Εͨ 13

Slide 14

Slide 14 text

·ͱΊ ʮPython Ͱ Slack ͷࠔΓ͝ͱΛԿͱ͔ͯ͠Έͨʯ ● ΍Γ͍ͨ͜ͱΛ୹͍ίʔυͰαΫοͱ࣮ݱͰ͖ͯྑ͍ʂ ● ࣍͸ Slack ʹΞοϓϩʔυͨ͠ϑΝΠϧΛ؅ཧ͢Δπʔϧ Λ࡞Γ͍ͨʂ 14