Skip to content

Commit

Permalink
Merge pull request #144 from na2na-p/develop
Browse files Browse the repository at this point in the history
1.2.0.2
  • Loading branch information
2na2-p[bot] authored Nov 4, 2022
2 parents 944090f + 845c97d commit a134c7f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "2na2-discord",
"version": "1.1.1.4",
"version": "1.2.0.2",
"main": "built/index.js",
"private": true,
"author": "na2na",
Expand Down
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Na2Client } from '@/client.js';
import _log from '@utils/log.js';
import type { commandSetType } from '@/types/types.js';
import { version } from '@utils/version.cjs';

function log(msg: string): void {
_log(`[Init]: ${msg}`);
Expand Down Expand Up @@ -48,6 +49,7 @@ const commands: commandSetType[] = [
// VCJoinCommandSetter, TODO: このモジュールは未実装
];

log(`2na2-Discord v${version}`);
log('Starting Na2Client...');

new Na2Client(hooks, commands);
4 changes: 4 additions & 0 deletions src/utils/version.cts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// HACK: require使うために仕方なくcommonJSに
const { version } = require('@/../package.json');

export { version };

0 comments on commit a134c7f

Please sign in to comment.