GithubHelp home page GithubHelp logo

nicjohnson / webhooks Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zeip/webhooks

0.0 1.0 0.0 21 KB

Webhook for announcing pending turns in Civilization VI's new Play by Cloud mode

License: GNU General Public License v3.0

PHP 100.00%

webhooks's Introduction

Civilization VI turn notification

This script allows you to send notifications to players in your Civilization VI Play by Cloud game of the pending turn. The script currently allows for Slack, Nexmo SMS and email notifications. As an added bonus, you can use the same webhook script to send notifications of Play Your Damn Turn turns. So that's two birds with one stone!

The setup is fairly simple. You need to host the script in a PHP-capable HTTP server that doesn't force HTTPS. Add a config.php which maps player names to email addresses, Slack ID's etc. (based on the example file provided), correct the config.php path if necessary and start a game.

There seem to be some kinks in the webhook process of the game. If the webhook URL is secure (https), the request is made but doesn't contain any data. Additionally changing the webhook URL in your Civ 6 settings doesn't seem to effect right away, but only after you've played your next turn โ€“ it's perhaps included in the turn file.

If you want to use the Slack integration, you need to create a Slack application and add a bot user to it. Then just set the bot access key to config.php and you should be set!

webhooks's People

Contributors

nicjohnson avatar zeip avatar

Watchers

 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.