Skip to content

Commit

Permalink
add: reboot message.
Browse files Browse the repository at this point in the history
  • Loading branch information
sasagar committed May 22, 2023
1 parent 321d109 commit 12f73c9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable camelcase */
import * as Misskey from 'misskey-js';
import axios from 'axios';
import fs from 'fs';
Expand All @@ -9,7 +10,7 @@ import * as dotenv from 'dotenv';

// 設定項目読み込み
dotenv.config();
const { BOT_TOKEN, MISSKEY_URL, JSON_URL } = process.env;
const { BOT_TOKEN, MISSKEY_URL, JSON_URL, npm_package_version } = process.env;

// Misskeyへ接続
const cli = new Misskey.api.APIClient(
Expand Down Expand Up @@ -458,4 +459,11 @@ const salmonrunextra = async () => {
// eslint-disable-next-line no-unused-vars
const salmonjob = schedule.scheduleJob('0 0 1-23/2 * * *', () => { salmonrun() });

// salmonrun();
// salmonrun();

// 起動時メッセージ
const upNotice = () => {
sendMessage(`【Bot再起動通知】v${npm_package_version} で起動しました。`);
}

upNotice();
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "grizzco-misskey-bot",
"version": "1.0.0-beta.4",
"version": "1.0.0-beta.5",
"description": "Misskeyにスケジュール更新を流すBotです。",
"main": "index.js",
"type": "module",
Expand Down

0 comments on commit 12f73c9

Please sign in to comment.