All Projects → JamesIves → perforce-commit-discord-bot

JamesIves / perforce-commit-discord-bot

Licence: MIT license
🗒️ ✏️Posts the most recent commit messages from a Perforce version control server to a Discord channel.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to perforce-commit-discord-bot

Golog
A high-performant Logging Foundation for Go Applications. X3 faster than the rest leveled loggers.
Stars: ✭ 208 (+845.45%)
Mutual labels:  logger
DustViewerSharp
UART-USB based dust sensor viewer(and also logging) program by C#
Stars: ✭ 38 (+72.73%)
Mutual labels:  logger
l
Golang Pretty Logger
Stars: ✭ 51 (+131.82%)
Mutual labels:  logger
Bus
Bus 是一个基础框架、服务套件,它基于Java8编写,参考、借鉴了大量已有框架、组件的设计,可以作为后端服务的开发基础中间件。代码简洁,架构清晰,非常适合学习使用。
Stars: ✭ 253 (+1050%)
Mutual labels:  logger
log
Aplus Framework Log Library
Stars: ✭ 14 (-36.36%)
Mutual labels:  logger
junit.testlogger
JUnit test logger for vstest platform
Stars: ✭ 61 (+177.27%)
Mutual labels:  logger
Odin
Fast & Functional logger in Scala
Stars: ✭ 225 (+922.73%)
Mutual labels:  logger
Web-Tracker
Stand alone program that Tracks/Logs all the opened websites in the Chrome Browser. Even incognito! *No need to install anything in browser*
Stars: ✭ 34 (+54.55%)
Mutual labels:  logger
gnomit
A simple Git commit message editor for Gnome.
Stars: ✭ 30 (+36.36%)
Mutual labels:  commit
WormholyForObjectiveC
Network debugging made easy,This network debugging tool is developed based on the swift version of Wormholy.
Stars: ✭ 21 (-4.55%)
Mutual labels:  logger
mini-async-log-c
Mini async log C port. Now with C++ wrappers.
Stars: ✭ 69 (+213.64%)
Mutual labels:  logger
QuickTraceiOSLogger
A real time iOS log trace tool, view iOS log with pc web browser under local area network, which will automatically scroll like xcode. 一个实时的iOS日志跟踪工具,在局域网中使用 PC Web 浏览器查看 iOS 日志,它将像xcode一样自动滚动。
Stars: ✭ 16 (-27.27%)
Mutual labels:  logger
commit-semantics
Commit semantics is a git aliases installation script to follow a fix format for commits
Stars: ✭ 38 (+72.73%)
Mutual labels:  commit
Chipmunk
log analysis tool
Stars: ✭ 247 (+1022.73%)
Mutual labels:  logger
loggers
Abstract logging for Golang projects. A kind of log4go in the spirit of log4j
Stars: ✭ 17 (-22.73%)
Mutual labels:  logger
Timber Elixir
🌲 Great Elixir logging made easy
Stars: ✭ 226 (+927.27%)
Mutual labels:  logger
ng-logger
Angular logger service
Stars: ✭ 65 (+195.45%)
Mutual labels:  logger
LogDNA-Android-Client
Android client for LogDNA
Stars: ✭ 22 (+0%)
Mutual labels:  logger
ets2-job-logger
ETS2 Job Logger
Stars: ✭ 15 (-31.82%)
Mutual labels:  logger
Torch-Scope
A Toolkit for Training, Tracking, Saving Models and Syncing Results
Stars: ✭ 62 (+181.82%)
Mutual labels:  logger

Perforce Commit Logger Discord Bot 🗒️ ✏️

Build Status Issues

With this bot you're able to keep track of commits made to a Perforce version control server within a Discord channel.

Installation Steps 💽

  1. Within your Discord server go to the settings for the channel you'd like the commit logs to be posted to and copy the webhook URL.
  2. Save the webhook URL as an environment variable called DISCORD_WEBHOOK_URL.
  3. The service requires access to the p4 changes command in the terminal, your bot should be installed somewhere where it can automatically perform this command without the session expiring. Once suitable access has been provided you'll need to run $ pip install -r requirements.txt followed by $ python app.py to initialize it.
  4. Optionally you should consider creating a CRON script or something similar that restarts the app.py file on server reboot in order to keep the bot alive.

Unit tests can be run using the $ python tests.py command.

Getting Started ✈️

Every thirty seconds the bot runs a Perforce command in the terminal that checks for the most recent changes. If it finds one it stores it in memory, if the change it finds is the same as the one it gathered previously then it discards it. You'll need to provide the bot with access to your servers Perforce command line. One way of doing this is running the Python application on the server which hosts your Perforce instance. If you can type p4 changes yourself then the bot will be able to do its thing.

Configuration 📁

The installation will require you to enter a number of settings as environment variables. Below you'll find an explanation of each.

Key Value Information Required
DISCORD_WEBHOOK_URL The Webhook URL for the Discord channel you'd like the bot to post its messages to. Yes

Example

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].