Skip to content

Instantly share code, notes, and snippets.

View sr229's full-sized avatar
:octocat:
GitHubは私の街です。 (๑・ω・๑)

Ayase Minori sr229

:octocat:
GitHubは私の街です。 (๑・ω・๑)
View GitHub Profile
@sr229
sr229 / quark_music.js
Created August 2, 2016 05:30
full music bot written in eris. at this moment it only supports playing in one guild at a time, but this can be fixed very easily.
'use strict';
const Eris = require("eris");
const ytdl = require('ytdl-core');
var bot = new Eris.CommandClient("token", {}, {
description: "The Quantum MusicBot.",
owner: "Gus",
prefix: "q!"
});
@sr229
sr229 / example_module.js
Last active August 3, 2016 02:49
A sample module template for project-snowflake. https://github.com/sr229/project-snowflake
exports.commands =[
"ping",
];
exports.ping = {
description : "ping pong example",
process : function (bot,msg){
bot.sendMessage(msg.channel,msg.author + "pong!");
}
}
@sr229
sr229 / bot-es6.js
Last active March 25, 2018 08:32
A Discord bot written in ES6 JavaScript format.
/* Project Clementine
* this is an experimental ES6 implementation
* some features don't work
* use at your own risk.
* -Capuccino
*/
"use strict";
import {Discord} from "discord.js";
import {fs} from "fs";
import {util} from "util";
@sr229
sr229 / bot-es6_compiled.js
Created September 16, 2016 04:58
out file from bot-es6.js by babel.
/* Project Clementine
* this is an experimental ES6 implementation
* some features don't work
* use at your own risk.
* -Capuccino
*/
"use strict";
var _discord = require("discord.js");
@sr229
sr229 / kanan.ts
Created October 24, 2016 12:27
just another try to do a TypeScript Script
/*
* Just another retarded TypeScript made by a lazy twat
* just to learn the lang itself
* and to donate something for /r/LoveLive
*
* Yes, it's Licensed under MIT too.
*/
const strings = input.split("");
class Vector {
@sr229
sr229 / Github Webhook Tutorial.md
Created November 26, 2016 12:58 — forked from jagrosh/Github Webhook Tutorial.md
Simple Github -> Discord webhook

Step 1 - Make a Discord Webhook

  1. Find the Discord channel in which you would like to send commits and other updates

  2. In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe! WebhookDiscord

Step 2 - Set up the webhook on Github

  1. Navigate to your repository on Github, and open the Settings Settings
@sr229
sr229 / milkshake.cpp
Created November 28, 2016 11:51
why 😂 🔫
#include <iostream>
using namespace std;
int main ()
{
int accnt_no, BC, FCDA, EC, MSC, total, VAT, total_bill, A, a;
char accnt_name, serv_add, repeat, cust_t, conn_t, ms, R, O, S, T ;
cout<<"***********************************************"<<endl;
cout<<"*Welcome to Milkshake Water-Billing Calculator*"<<endl;
@sr229
sr229 / .travis.yml
Created December 18, 2016 03:20
👀
sudo: required
dist: trusty
language: node_js
node_js:
- "6.9"
- "7.1"
install:
- npm -g install -S
<!DOCTYPE html>
<meta charset="utf-8"/>
<head>
<title> awau </title>
<!-- Requires -->
<script src="js/materialize.js" type="text/javascript"></script>
<!-- Mandatory JQuery-->
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="css/materialize.css" rel="stylesheet" type="text/css"/>
@sr229
sr229 / che-electron.sh
Created April 3, 2017 04:22
Script to open Eclipse Che electron app, together with the server (as docker image)
#!/bin/sh
# check if docker is working
docker ps &> /dev/null
if [ $? -ne 0 ]; then
echo "[ERROR]\tCannot connect to the Docker daemon. Is the docker daemon running on this host?" 1>&2
return 1
fi
CONTAINER="che"