I hereby claim:
- I am yhay81 on github.
- I am yhay81 (https://keybase.io/yhay81) on keybase.
- I have a public key ASATeAOR3Koo3zBKhXc1r4nRa8NcWkwjS_jWN95oUVPKkgo
To claim this, I am signing this object:
import Discord from "discord.js"; | |
const client = new Discord.Client(); | |
// ready | |
/* Emitted when the client becomes ready to start working. */ | |
client.on("ready", function() { | |
console.log(`the client becomes ready to start`); | |
console.log(`I am ready! Logged in as ${client.user.tag}!`); | |
console.log( |
I hereby claim:
To claim this, I am signing this object:
import sqlite3 | |
import random | |
import discord | |
client = discord.Client() | |
conn = sqlite3.connect("recruit.db") | |
@client.event | |
async def on_ready(): |
monsters.json | |
[ | |
{ | |
"name": "【超強敵!!】デュラハン", | |
"hp_co": 0, | |
"dmg_co": 1.0, | |
"quote": "...", | |
"img": "dullahan.png" | |
}, |
import sqlite3 | |
import discord | |
client = discord.Client() | |
@client.event | |
async def on_ready(): | |
print('Logged in as') | |
print(client.user.name) |
var token = 'xoxb-34...みたいなトークン'; | |
var slack = GASlacker.methods(token); | |
function doPost(e){ | |
var event = JSON.parse(e.postData.contents).event; | |
if(event.text.match(/hello/)){ | |
var text = "Hello," + event.message.username; | |
slack.chat.postMessage(event.channel, text); | |
} | |
} |
class NaturalNumber: | |
def __init__(self, p=None): | |
self.predecessor = p | |
def __eq__(self, x): | |
if self.predecessor is None and x.predecessor is None: | |
return True | |
elif (self.predecessor is None and x.predecessor is not None) \ | |
or (self.predecessor is not None and x.predecessor is None): | |
return False |
var SLACK_ACCESS_TOKEN = PropertiesService.getScriptProperties().getProperty('SLACK_ACCESS_TOKEN'); | |
var GIPHY_API_KEY = PropertiesService.getScriptProperties().getProperty('GIPHY_API_KEY'); | |
// var SPREAD_SHEET_ID = PropertiesService.getScriptProperties().getProperty('SPREAD_SHEAT_ID'); | |
var POST_MESSAGE_ENDPOINT = 'https://slack.com/api/chat.postMessage'; | |
var TEXTS = [ | |
'Do you like dogs?:dog:', | |
'You said the word!:grinning:', | |
'I hope you like this...:poodle:', | |
'Dogs are cute!:dog2: Dogs are cute!:dog2:', |
from functools import wraps | |
from time import time | |
def timing(f): | |
@wraps(f) | |
def wrapper(*args, **kwds): | |
s = time() | |
f(*args, **kwds) | |
return time() - s |
let count = 0; | |
const doOnlyOnce = function (){ | |
if(count==0){ | |
console.log("You do this for first time."); | |
}else{ | |
console.log("You already have done this."); | |
} | |
count++; | |
}; |