If you want to match any message:
(.*)
will group any characters together.
For messages ending in a certain character:
/// align_to_grid(grid_size) | |
// | |
// To be used in the step event. | |
// Stops the player if they are aligned to the grid, and are not pressing any of the movement keys. | |
// | |
// grid_size The size, in pixels, of each square of the grid. | |
// | |
grid_size = argument0 |
If you want to match any message:
(.*)
will group any characters together.
For messages ending in a certain character:
var irc = require("irc"); | |
var flipText = require("flip-text") | |
var config = { | |
channels: ["#ludumdare"], | |
server: "irc.afternet.org", | |
botName: "tablebot" | |
}; | |
var bot = new irc.Client(config.server, config.botName, { |
CREATE DATABASE IF NOT EXISTS `coalesce` DEFAULT CHARACTER SET latin1 COLLATE utf8_general_ci; | |
USE `coalesce`; | |
DROP TABLE IF EXISTS `game`; | |
CREATE TABLE IF NOT EXISTS `game` ( | |
`uuid` varchar(36) NOT NULL, | |
`player1_uuid` varchar(36) NOT NULL, | |
`player2_uuid` varchar(36) NOT NULL, | |
`winner_uuid` varchar(36) NOT NULL, | |
`timestamp` bigint(20) NOT NULL |
P:name:pass - login (or signup if none exists) | |
J:pos - jump at position | |
Q - quit | |
F - fail | |
L - login | |
S - search | |
G:leveldata - game | |
E:size - end | |
K - keepalive | |
M:newmmr - mmr |
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; | |
SET time_zone = "+00:00"; | |
CREATE DATABASE IF NOT EXISTS `coalesce` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; | |
USE `coalesce`; | |
CREATE TABLE IF NOT EXISTS `game` ( | |
`uuid` varchar(36) NOT NULL, | |
`player1_uuid` varchar(36) NOT NULL, | |
`player2_uuid` varchar(36) NOT NULL, | |
`winner_uuid` varchar(36) NOT NULL, |
CREATE DATABASE IF NOT EXISTS `ld33` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; | |
USE `ld33`; | |
CREATE TABLE IF NOT EXISTS `player` ( | |
`uuid` varchar(36) NOT NULL, | |
`name` varchar(256) NOT NULL, | |
`password_hash` varchar(256) NOT NULL, | |
`password_salt` varchar(256) NOT NULL, | |
`resources` int(11) NOT NULL | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
package com.seventh_root.ohgj18; | |
import javax.imageio.ImageIO; | |
import javax.swing.*; | |
import java.awt.*; | |
import java.awt.event.KeyAdapter; | |
import java.awt.event.KeyEvent; | |
import java.awt.event.WindowAdapter; | |
import java.awt.event.WindowEvent; | |
import java.awt.image.BufferedImage; |
import org.bukkit.configuration.serialization.ConfigurationSerializable; | |
import java.util.*; | |
/** | |
* Serialisable UUID set. | |
* | |
* On startup, call ConfigurationSerialization.registerClass(SerialisableUUIDSet.class) | |
* To store one, use FileConfiguration.set("path", mySerialisableUUIDSet) | |
* To retrieve one, use (SerialisableUUIDSet) FileConfiguration.get("path") |