Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
#!/bin/bash | |
# update the TOKEN and the CHANNELID, rest is optional | |
# you may need to connect with a websocket the first time you run the bot | |
# use a library like discord.py to do so | |
curl -v \ | |
-H "Authorization: Bot TOKEN" \ | |
-H "User-Agent: myBotThing (http://some.url, v0.1)" \ | |
-H "Content-Type: application/json" \ |
# post a message to discord api via a bot | |
# bot must be added to the server and have write access to the channel | |
# you may need to connect with a websocket the first time you run the bot | |
# use a library like discord.py to do so | |
import requests | |
import json | |
channelID = "your_id_goes_here" # enable dev mode on discord, right-click on the channel, copy ID | |
botToken = "your_token_here" # get from the bot page. must be a bot, not a discord app |
Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
A list of the most common functionalities in Jekyll (Liquid). You can use Jekyll with GitHub Pages, just make sure you are using the proper version.
Running a local server for testing purposes: