Giter VIP home page Giter VIP logo

video-recording-bot's Introduction

Video Recording Bot

定期的に動画を撮影し、ディスコードのチャネルに投稿するDiscord BOTです。

Installation

Prerequirements

sudo apt install -y git ffmpeg python3 python3-pip && sudo pip3 install poetry

インストール

  1. このリポジトリをクローンし、プロジェクトフォルダに入る。
  2. pythonの依存関係をインストールする。
    poetry install

使い方

OBS 設定

  1. 録画したいものをキャプチャする。
  2. ツール(Tools)から WebSocketサーバ設定を選択し、WebSocketサーバを有効にする。
  3. サーバポートが4455になっていることを確認する。
  4. 認証(サーバーパスワード)を設定する場合は、パスワードのメモを取っておく。

Discord Botの設定

  1. Discord BotのTOKENを取得する。
  2. 開発者モードにしたDiscordで投稿したいチャネルを右クリックし、チャネルIDを取得する。

.envファイル(環境変数)を設定する

BOTのトークンなどの機密情報を漏洩しないために、.envファイルを作成する。

  1. .env.exampleを複製し、.envファイルという名前にする。
  2. .envファイルにDiscordbotのトークン、投稿先のチャネルID、OBS Websocket Serverのパスワードを記述する。

Bot を起動する

  1. poetry shellをこのプロジェクトのディレクトリで実行する。
  2. python bot.py --post-message "Hello, I'm Video Recording BOT!"

コマンドライン引数

全てのコマンド引数のリストは python bot.py -hを実行してください。

video-recording-bot's People

Contributors

geson-anko avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.