Skip to content
This repository was archived by the owner on Feb 25, 2026. It is now read-only.

Commit 8885009

Browse files
committed
fix: license some files as unlicense
1 parent f334ea6 commit 8885009

File tree

9 files changed

+250
-0
lines changed

9 files changed

+250
-0
lines changed

telegram/api/server.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
// This is free and unencumbered software released into the public domain.
2+
//
3+
// Anyone is free to copy, modify, publish, use, compile, sell, or
4+
// distribute this software, either in source code form or as a compiled
5+
// binary, for any purpose, commercial or non-commercial, and by any
6+
// means.
7+
//
8+
// In jurisdictions that recognize copyright laws, the author or authors
9+
// of this software dedicate any and all copyright interest in the
10+
// software to the public domain. We make this dedication for the benefit
11+
// of the public at large and to the detriment of our heirs and
12+
// successors. We intend this dedication to be an overt act of
13+
// relinquishment in perpetuity of all present and future rights to this
14+
// software under copyright law.
15+
//
16+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17+
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18+
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19+
// IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
20+
// OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21+
// ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22+
// OTHER DEALINGS IN THE SOFTWARE.
23+
//
24+
// For more information, please refer to <https://unlicense.org/>
25+
126
import express, { Request, Response } from "express";
227
import { drizzle } from "drizzle-orm/node-postgres";
328
import { Client } from "pg";

telegram/middleware/error-handler.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
// This is free and unencumbered software released into the public domain.
2+
//
3+
// Anyone is free to copy, modify, publish, use, compile, sell, or
4+
// distribute this software, either in source code form or as a compiled
5+
// binary, for any purpose, commercial or non-commercial, and by any
6+
// means.
7+
//
8+
// In jurisdictions that recognize copyright laws, the author or authors
9+
// of this software dedicate any and all copyright interest in the
10+
// software to the public domain. We make this dedication for the benefit
11+
// of the public at large and to the detriment of our heirs and
12+
// successors. We intend this dedication to be an overt act of
13+
// relinquishment in perpetuity of all present and future rights to this
14+
// software under copyright law.
15+
//
16+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17+
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18+
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19+
// IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
20+
// OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21+
// ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22+
// OTHER DEALINGS IN THE SOFTWARE.
23+
//
24+
// For more information, please refer to <https://unlicense.org/>
25+
126
import { Context } from 'telegraf';
227
import { NodePgDatabase } from 'drizzle-orm/node-postgres';
328
import * as schema from '../../database/schema';

telegram/monitoring/metrics.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
// This is free and unencumbered software released into the public domain.
2+
//
3+
// Anyone is free to copy, modify, publish, use, compile, sell, or
4+
// distribute this software, either in source code form or as a compiled
5+
// binary, for any purpose, commercial or non-commercial, and by any
6+
// means.
7+
//
8+
// In jurisdictions that recognize copyright laws, the author or authors
9+
// of this software dedicate any and all copyright interest in the
10+
// software to the public domain. We make this dedication for the benefit
11+
// of the public at large and to the detriment of our heirs and
12+
// successors. We intend this dedication to be an overt act of
13+
// relinquishment in perpetuity of all present and future rights to this
14+
// software under copyright law.
15+
//
16+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17+
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18+
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19+
// IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
20+
// OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21+
// ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22+
// OTHER DEALINGS IN THE SOFTWARE.
23+
//
24+
// For more information, please refer to <https://unlicense.org/>
25+
126
import { register, Counter, Gauge, Histogram, collectDefaultMetrics } from 'prom-client';
227
import { ValkeyMetricsCollector } from './valkey-metrics';
328

telegram/monitoring/valkey-metrics.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
// This is free and unencumbered software released into the public domain.
2+
//
3+
// Anyone is free to copy, modify, publish, use, compile, sell, or
4+
// distribute this software, either in source code form or as a compiled
5+
// binary, for any purpose, commercial or non-commercial, and by any
6+
// means.
7+
//
8+
// In jurisdictions that recognize copyright laws, the author or authors
9+
// of this software dedicate any and all copyright interest in the
10+
// software to the public domain. We make this dedication for the benefit
11+
// of the public at large and to the detriment of our heirs and
12+
// successors. We intend this dedication to be an overt act of
13+
// relinquishment in perpetuity of all present and future rights to this
14+
// software under copyright law.
15+
//
16+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17+
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18+
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19+
// IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
20+
// OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21+
// ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22+
// OTHER DEALINGS IN THE SOFTWARE.
23+
//
24+
// For more information, please refer to <https://unlicense.org/>
25+
126
import { createClient } from 'redis';
227
import { Gauge } from 'prom-client';
328

telegram/utils/error-tracker.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,33 @@
1+
// ERROR-TRACKER.TS
2+
// by ihatenodejs/Aidan
3+
//
4+
// -----------------------------------------------------------------------
5+
//
6+
// This is free and unencumbered software released into the public domain.
7+
//
8+
// Anyone is free to copy, modify, publish, use, compile, sell, or
9+
// distribute this software, either in source code form or as a compiled
10+
// binary, for any purpose, commercial or non-commercial, and by any
11+
// means.
12+
//
13+
// In jurisdictions that recognize copyright laws, the author or authors
14+
// of this software dedicate any and all copyright interest in the
15+
// software to the public domain. We make this dedication for the benefit
16+
// of the public at large and to the detriment of our heirs and
17+
// successors. We intend this dedication to be an overt act of
18+
// relinquishment in perpetuity of all present and future rights to this
19+
// software under copyright law.
20+
//
21+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22+
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
23+
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
24+
// IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
25+
// OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
26+
// ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
27+
// OTHER DEALINGS IN THE SOFTWARE.
28+
//
29+
// For more information, please refer to <https://unlicense.org/>
30+
131
import { NodePgDatabase } from 'drizzle-orm/node-postgres';
232
import { eq } from 'drizzle-orm';
333
import * as schema from '../../database/schema';

telegram/utils/health-recorder.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,33 @@
1+
// HEALTH-RECORDER.TS
2+
// by ihatenodejs/Aidan
3+
//
4+
// -----------------------------------------------------------------------
5+
//
6+
// This is free and unencumbered software released into the public domain.
7+
//
8+
// Anyone is free to copy, modify, publish, use, compile, sell, or
9+
// distribute this software, either in source code form or as a compiled
10+
// binary, for any purpose, commercial or non-commercial, and by any
11+
// means.
12+
//
13+
// In jurisdictions that recognize copyright laws, the author or authors
14+
// of this software dedicate any and all copyright interest in the
15+
// software to the public domain. We make this dedication for the benefit
16+
// of the public at large and to the detriment of our heirs and
17+
// successors. We intend this dedication to be an overt act of
18+
// relinquishment in perpetuity of all present and future rights to this
19+
// software under copyright law.
20+
//
21+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22+
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
23+
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
24+
// IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
25+
// OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
26+
// ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
27+
// OTHER DEALINGS IN THE SOFTWARE.
28+
//
29+
// For more information, please refer to <https://unlicense.org/>
30+
131
import { eq, and, gte, count } from 'drizzle-orm';
232
import { nanoid } from 'nanoid';
333
import type { NodePgDatabase } from 'drizzle-orm/node-postgres';

telegram/utils/real-time-health.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,33 @@
1+
// REAL-TIME-HEALTH.TS
2+
// by ihatenodejs/Aidan
3+
//
4+
// -----------------------------------------------------------------------
5+
//
6+
// This is free and unencumbered software released into the public domain.
7+
//
8+
// Anyone is free to copy, modify, publish, use, compile, sell, or
9+
// distribute this software, either in source code form or as a compiled
10+
// binary, for any purpose, commercial or non-commercial, and by any
11+
// means.
12+
//
13+
// In jurisdictions that recognize copyright laws, the author or authors
14+
// of this software dedicate any and all copyright interest in the
15+
// software to the public domain. We make this dedication for the benefit
16+
// of the public at large and to the detriment of our heirs and
17+
// successors. We intend this dedication to be an overt act of
18+
// relinquishment in perpetuity of all present and future rights to this
19+
// software under copyright law.
20+
//
21+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22+
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
23+
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
24+
// IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
25+
// OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
26+
// ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
27+
// OTHER DEALINGS IN THE SOFTWARE.
28+
//
29+
// For more information, please refer to <https://unlicense.org/>
30+
131
import { createClient } from 'redis';
232
import { Client } from 'pg';
333
import { Telegraf } from 'telegraf';

telegram/utils/sync-admin-status.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,33 @@
1+
// SYNC-ADMIN-STATUS.TS
2+
// by ihatenodejs/Aidan
3+
//
4+
// -----------------------------------------------------------------------
5+
//
6+
// This is free and unencumbered software released into the public domain.
7+
//
8+
// Anyone is free to copy, modify, publish, use, compile, sell, or
9+
// distribute this software, either in source code form or as a compiled
10+
// binary, for any purpose, commercial or non-commercial, and by any
11+
// means.
12+
//
13+
// In jurisdictions that recognize copyright laws, the author or authors
14+
// of this software dedicate any and all copyright interest in the
15+
// software to the public domain. We make this dedication for the benefit
16+
// of the public at large and to the detriment of our heirs and
17+
// successors. We intend this dedication to be an overt act of
18+
// relinquishment in perpetuity of all present and future rights to this
19+
// software under copyright law.
20+
//
21+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22+
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
23+
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
24+
// IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
25+
// OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
26+
// ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
27+
// OTHER DEALINGS IN THE SOFTWARE.
28+
//
29+
// For more information, please refer to <https://unlicense.org/>
30+
131
import { NodePgDatabase } from 'drizzle-orm/node-postgres';
232
import { eq } from 'drizzle-orm';
333
import * as schema from '../../database/schema';

telegram/utils/track-command.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,33 @@
1+
// TRACK-COMMAND.TS
2+
// by ihatenodejs/Aidan
3+
//
4+
// -----------------------------------------------------------------------
5+
//
6+
// This is free and unencumbered software released into the public domain.
7+
//
8+
// Anyone is free to copy, modify, publish, use, compile, sell, or
9+
// distribute this software, either in source code form or as a compiled
10+
// binary, for any purpose, commercial or non-commercial, and by any
11+
// means.
12+
//
13+
// In jurisdictions that recognize copyright laws, the author or authors
14+
// of this software dedicate any and all copyright interest in the
15+
// software to the public domain. We make this dedication for the benefit
16+
// of the public at large and to the detriment of our heirs and
17+
// successors. We intend this dedication to be an overt act of
18+
// relinquishment in perpetuity of all present and future rights to this
19+
// software under copyright law.
20+
//
21+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22+
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
23+
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
24+
// IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
25+
// OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
26+
// ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
27+
// OTHER DEALINGS IN THE SOFTWARE.
28+
//
29+
// For more information, please refer to <https://unlicense.org/>
30+
131
import { NodePgDatabase } from 'drizzle-orm/node-postgres';
232
import * as schema from '../../database/schema';
333
import { Context } from 'telegraf';

0 commit comments

Comments
 (0)