Skip to content

Instantly share code, notes, and snippets.

View yhay81's full-sized avatar

Yusuke Hayashi yhay81

View GitHub Profile
@kazuooooo
kazuooooo / obento-bot.js
Last active September 20, 2022 11:21
お弁当ボットのソースコードです(Google App Script)
Const = {
spreadSheetId: 'xxxxxxxxxxxxxxxxxx',
obentColumnIdx: 6,
sheetStartDate: new Date(2017, 0, 19),
sheetTopMarginRows: 4,
scheduleOrderTime: new Date(2017, 0, 1),
scheduleRemindTime: new Date(2017, 0, 1),
triggers: {
triggerDays: [ScriptApp.WeekDay.SUNDAY,
ScriptApp.WeekDay.MONDAY,
@dolpen
dolpen / inkopolis.js
Last active March 22, 2018 01:48
GAS -> Discord にハイカラニュース流す奴
var webhook = (function(){
var DiscordWebhook = function(id, token){
this.id = id;
this.token = token;
};
DiscordWebhook.prototype = {
_endpoint : function(){return 'https://discordapp.com/api/webhooks/'+this.id+'/'+this.token;},
send : function(content){
UrlFetchApp.fetch(this._endpoint(),{'method' : 'post','payload' : {'content' : content}});
}