From 058b5f936b4788d46c745c016bbfe325f37f12b3 Mon Sep 17 00:00:00 2001 From: Sorunome <mail@sorunome.de> Date: Wed, 9 Jan 2019 14:30:59 +0100 Subject: [PATCH] add license headers everywhere --- src/bot.ts | 16 ++++++++++++++++ src/channelsyncroniser.ts | 16 ++++++++++++++++ src/clientfactory.ts | 16 ++++++++++++++++ src/config.ts | 16 ++++++++++++++++ src/db/connector.ts | 16 ++++++++++++++++ src/db/dbdataemoji.ts | 16 ++++++++++++++++ src/db/dbdataevent.ts | 16 ++++++++++++++++ src/db/dbdatainterface.ts | 16 ++++++++++++++++ src/db/postgres.ts | 16 ++++++++++++++++ src/db/schema/dbschema.ts | 16 ++++++++++++++++ src/db/schema/v1.ts | 16 ++++++++++++++++ src/db/schema/v2.ts | 16 ++++++++++++++++ src/db/schema/v3.ts | 16 ++++++++++++++++ src/db/schema/v4.ts | 16 ++++++++++++++++ src/db/schema/v5.ts | 16 ++++++++++++++++ src/db/schema/v6.ts | 16 ++++++++++++++++ src/db/schema/v7.ts | 16 ++++++++++++++++ src/db/sqlite3.ts | 16 ++++++++++++++++ src/discordas.ts | 16 ++++++++++++++++ src/discordmessageprocessor.ts | 16 ++++++++++++++++ src/log.ts | 16 ++++++++++++++++ src/matrixeventprocessor.ts | 16 ++++++++++++++++ src/matrixmessageprocessor.ts | 16 ++++++++++++++++ src/matrixroomhandler.ts | 16 ++++++++++++++++ src/matrixtypes.ts | 16 ++++++++++++++++ src/presencehandler.ts | 16 ++++++++++++++++ src/provisioner.ts | 16 ++++++++++++++++ src/store.ts | 16 ++++++++++++++++ src/usersyncroniser.ts | 16 ++++++++++++++++ src/util.ts | 16 ++++++++++++++++ test/config.ts | 16 ++++++++++++++++ test/mocks/channel.ts | 16 ++++++++++++++++ test/mocks/collection.ts | 16 ++++++++++++++++ test/mocks/discordclient.ts | 16 ++++++++++++++++ test/mocks/discordclientfactory.ts | 16 ++++++++++++++++ test/mocks/emoji.ts | 15 +++++++++++++++ test/mocks/guild.ts | 16 ++++++++++++++++ test/mocks/member.ts | 16 ++++++++++++++++ test/mocks/message.ts | 16 ++++++++++++++++ test/mocks/role.ts | 15 +++++++++++++++ test/mocks/store.ts | 16 ++++++++++++++++ test/mocks/user.ts | 16 ++++++++++++++++ test/test_channelsyncroniser.ts | 16 ++++++++++++++++ test/test_clientfactory.ts | 16 ++++++++++++++++ test/test_config.ts | 16 ++++++++++++++++ test/test_configschema.ts | 16 ++++++++++++++++ test/test_discordbot.ts | 16 ++++++++++++++++ test/test_discordmessageprocessor.ts | 16 ++++++++++++++++ test/test_log.ts | 16 ++++++++++++++++ test/test_matrixeventprocessor.ts | 16 ++++++++++++++++ test/test_matrixmessageprocessor.ts | 16 ++++++++++++++++ test/test_matrixroomhandler.ts | 16 ++++++++++++++++ test/test_presencehandler.ts | 16 ++++++++++++++++ test/test_provisioner.ts | 16 ++++++++++++++++ test/test_store.ts | 16 ++++++++++++++++ test/test_usersyncroniser.ts | 16 ++++++++++++++++ test/test_util.ts | 16 ++++++++++++++++ tools/addRoomsToDirectory.ts | 16 ++++++++++++++++ tools/addbot.ts | 16 ++++++++++++++++ tools/adminme.ts | 16 ++++++++++++++++ tools/chanfix.ts | 16 ++++++++++++++++ tools/ghostfix.ts | 16 ++++++++++++++++ tools/userClientTools.ts | 16 ++++++++++++++++ 63 files changed, 1006 insertions(+) diff --git a/src/bot.ts b/src/bot.ts index 5b1ccec..b4e3c16 100644 --- a/src/bot.ts +++ b/src/bot.ts @@ -1,3 +1,19 @@ +/* +Copyright 2017, 2018 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { DiscordBridgeConfig } from "./config"; import { DiscordClientFactory } from "./clientfactory"; import { DiscordStore } from "./store"; diff --git a/src/channelsyncroniser.ts b/src/channelsyncroniser.ts index 6635c20..74932cf 100644 --- a/src/channelsyncroniser.ts +++ b/src/channelsyncroniser.ts @@ -1,3 +1,19 @@ +/* +Copyright 2018 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import * as Discord from "discord.js"; import { DiscordBot } from "./bot"; import { Util } from "./util"; diff --git a/src/clientfactory.ts b/src/clientfactory.ts index ef2393d..478dbaa 100644 --- a/src/clientfactory.ts +++ b/src/clientfactory.ts @@ -1,3 +1,19 @@ +/* +Copyright 2017, 2018 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { DiscordBridgeConfigAuth } from "./config"; import { DiscordStore } from "./store"; import { Client as DiscordClient } from "discord.js"; diff --git a/src/config.ts b/src/config.ts index a94c720..ee6a32c 100644 --- a/src/config.ts +++ b/src/config.ts @@ -1,3 +1,19 @@ +/* +Copyright 2017, 2018 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + /** Type annotations for config/config.schema.yaml */ export class DiscordBridgeConfig { public bridge: DiscordBridgeConfigBridge = new DiscordBridgeConfigBridge(); diff --git a/src/db/connector.ts b/src/db/connector.ts index 4f500f6..fc6b74f 100644 --- a/src/db/connector.ts +++ b/src/db/connector.ts @@ -1,3 +1,19 @@ +/* +Copyright 2018 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + export interface ISqlCommandParameters { [paramKey: string]: number | boolean | string | Promise<number | boolean | string>; } diff --git a/src/db/dbdataemoji.ts b/src/db/dbdataemoji.ts index 0813ccc..867b019 100644 --- a/src/db/dbdataemoji.ts +++ b/src/db/dbdataemoji.ts @@ -1,3 +1,19 @@ +/* +Copyright 2017, 2018 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { DiscordStore } from "../store"; import { IDbData } from "./dbdatainterface"; import { ISqlCommandParameters } from "./connector"; diff --git a/src/db/dbdataevent.ts b/src/db/dbdataevent.ts index 20fc719..46c8a93 100644 --- a/src/db/dbdataevent.ts +++ b/src/db/dbdataevent.ts @@ -1,3 +1,19 @@ +/* +Copyright 2017, 2018 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { DiscordStore } from "../store"; import { IDbDataMany } from "./dbdatainterface"; import { ISqlCommandParameters } from "./connector"; diff --git a/src/db/dbdatainterface.ts b/src/db/dbdatainterface.ts index 69fdda0..043bec0 100644 --- a/src/db/dbdatainterface.ts +++ b/src/db/dbdatainterface.ts @@ -1,3 +1,19 @@ +/* +Copyright 2017, 2018 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { DiscordStore } from "../store"; export interface IDbData { diff --git a/src/db/postgres.ts b/src/db/postgres.ts index fe01572..834f841 100644 --- a/src/db/postgres.ts +++ b/src/db/postgres.ts @@ -1,3 +1,19 @@ +/* +Copyright 2018 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import * as pgPromise from "pg-promise"; import { Log } from "../log"; import { IDatabaseConnector, ISqlCommandParameters, ISqlRow } from "./connector"; diff --git a/src/db/schema/dbschema.ts b/src/db/schema/dbschema.ts index e96ceb6..9f215f1 100644 --- a/src/db/schema/dbschema.ts +++ b/src/db/schema/dbschema.ts @@ -1,3 +1,19 @@ +/* +Copyright 2017, 2018 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { DiscordStore } from "../../store"; export interface IDbSchema { description: string; diff --git a/src/db/schema/v1.ts b/src/db/schema/v1.ts index 5a60bd3..63c0447 100644 --- a/src/db/schema/v1.ts +++ b/src/db/schema/v1.ts @@ -1,3 +1,19 @@ +/* +Copyright 2017, 2018 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import {IDbSchema} from "./dbschema"; import {DiscordStore} from "../../store"; export class Schema implements IDbSchema { diff --git a/src/db/schema/v2.ts b/src/db/schema/v2.ts index 3831efd..ce566f9 100644 --- a/src/db/schema/v2.ts +++ b/src/db/schema/v2.ts @@ -1,3 +1,19 @@ +/* +Copyright 2017, 2018 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import {IDbSchema} from "./dbschema"; import {DiscordStore} from "../../store"; export class Schema implements IDbSchema { diff --git a/src/db/schema/v3.ts b/src/db/schema/v3.ts index 60cf3e7..3f58e06 100644 --- a/src/db/schema/v3.ts +++ b/src/db/schema/v3.ts @@ -1,3 +1,19 @@ +/* +Copyright 2017, 2018 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import {IDbSchema} from "./dbschema"; import {DiscordStore} from "../../store"; import {DiscordClientFactory} from "../../clientfactory"; diff --git a/src/db/schema/v4.ts b/src/db/schema/v4.ts index 816eaf0..8787f45 100644 --- a/src/db/schema/v4.ts +++ b/src/db/schema/v4.ts @@ -1,3 +1,19 @@ +/* +Copyright 2017, 2018 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import {IDbSchema} from "./dbschema"; import {DiscordStore} from "../../store"; diff --git a/src/db/schema/v5.ts b/src/db/schema/v5.ts index 2822da1..e9fa7fe 100644 --- a/src/db/schema/v5.ts +++ b/src/db/schema/v5.ts @@ -1,3 +1,19 @@ +/* +Copyright 2017, 2018 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import {IDbSchema} from "./dbschema"; import {DiscordStore} from "../../store"; diff --git a/src/db/schema/v6.ts b/src/db/schema/v6.ts index ba6f505..02659d9 100644 --- a/src/db/schema/v6.ts +++ b/src/db/schema/v6.ts @@ -1,3 +1,19 @@ +/* +Copyright 2017, 2018 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import {IDbSchema} from "./dbschema"; import {DiscordStore} from "../../store"; diff --git a/src/db/schema/v7.ts b/src/db/schema/v7.ts index 98fcf0e..fa025f2 100644 --- a/src/db/schema/v7.ts +++ b/src/db/schema/v7.ts @@ -1,3 +1,19 @@ +/* +Copyright 2018 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import {IDbSchema} from "./dbschema"; import {DiscordStore} from "../../store"; import { Log } from "../../log"; diff --git a/src/db/sqlite3.ts b/src/db/sqlite3.ts index 7a36409..c7a706e 100644 --- a/src/db/sqlite3.ts +++ b/src/db/sqlite3.ts @@ -1,3 +1,19 @@ +/* +Copyright 2018 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import * as Database from "better-sqlite3"; import { Log } from "../log"; import { IDatabaseConnector, ISqlCommandParameters, ISqlRow } from "./connector"; diff --git a/src/discordas.ts b/src/discordas.ts index e20e577..6771e66 100644 --- a/src/discordas.ts +++ b/src/discordas.ts @@ -1,3 +1,19 @@ +/* +Copyright 2017 - 2019 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Cli, Bridge, AppServiceRegistration, ClientFactory } from "matrix-appservice-bridge"; import * as Bluebird from "bluebird"; import * as yaml from "js-yaml"; diff --git a/src/discordmessageprocessor.ts b/src/discordmessageprocessor.ts index 8df1273..ed30eb3 100644 --- a/src/discordmessageprocessor.ts +++ b/src/discordmessageprocessor.ts @@ -1,3 +1,19 @@ +/* +Copyright 2017, 2018 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import * as Discord from "discord.js"; import * as markdown from "discord-markdown"; import { DiscordBot } from "./bot"; diff --git a/src/log.ts b/src/log.ts index 449ecfb..11c8688 100644 --- a/src/log.ts +++ b/src/log.ts @@ -1,3 +1,19 @@ +/* +Copyright 2018 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { createLogger, Logger, format, transports } from "winston"; import { DiscordBridgeConfigLogging, LoggingFile} from "./config"; import { inspect } from "util"; diff --git a/src/matrixeventprocessor.ts b/src/matrixeventprocessor.ts index 285fbd2..1aeae33 100644 --- a/src/matrixeventprocessor.ts +++ b/src/matrixeventprocessor.ts @@ -1,3 +1,19 @@ +/* +Copyright 2018 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import * as Discord from "discord.js"; import { DiscordBot } from "./bot"; import { DiscordBridgeConfig } from "./config"; diff --git a/src/matrixmessageprocessor.ts b/src/matrixmessageprocessor.ts index 80459a0..f177634 100644 --- a/src/matrixmessageprocessor.ts +++ b/src/matrixmessageprocessor.ts @@ -1,3 +1,19 @@ +/* +Copyright 2018 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import * as Discord from "discord.js"; import { IMatrixMessage, IMatrixEvent } from "./matrixtypes"; import * as Parser from "node-html-parser"; diff --git a/src/matrixroomhandler.ts b/src/matrixroomhandler.ts index eaa0be3..cde60f4 100644 --- a/src/matrixroomhandler.ts +++ b/src/matrixroomhandler.ts @@ -1,3 +1,19 @@ +/* +Copyright 2018 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { DiscordBot } from "./bot"; import { Bridge, diff --git a/src/matrixtypes.ts b/src/matrixtypes.ts index 5c87ee0..5071043 100644 --- a/src/matrixtypes.ts +++ b/src/matrixtypes.ts @@ -1,3 +1,19 @@ +/* +Copyright 2018 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + export interface IMatrixEventContent { body?: string; info?: any; // tslint:disable-line no-any diff --git a/src/presencehandler.ts b/src/presencehandler.ts index 9238bc9..9f1c1e2 100644 --- a/src/presencehandler.ts +++ b/src/presencehandler.ts @@ -1,3 +1,19 @@ +/* +Copyright 2017, 2018 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { User, Presence } from "discord.js"; import { DiscordBot } from "./bot"; import { Log } from "./log"; diff --git a/src/provisioner.ts b/src/provisioner.ts index ad5d4f9..68980f0 100644 --- a/src/provisioner.ts +++ b/src/provisioner.ts @@ -1,3 +1,19 @@ +/* +Copyright 2018, 2019 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Bridge, RemoteRoom, diff --git a/src/store.ts b/src/store.ts index 0c76bbb..62787dd 100644 --- a/src/store.ts +++ b/src/store.ts @@ -1,3 +1,19 @@ +/* +Copyright 2017, 2018 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import * as fs from "fs"; import { IDbSchema } from "./db/schema/dbschema"; import { IDbData} from "./db/dbdatainterface"; diff --git a/src/usersyncroniser.ts b/src/usersyncroniser.ts index e1aee51..52319a0 100644 --- a/src/usersyncroniser.ts +++ b/src/usersyncroniser.ts @@ -1,3 +1,19 @@ +/* +Copyright 2018 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { User, GuildMember, GuildChannel } from "discord.js"; import { DiscordBot } from "./bot"; import { Util } from "./util"; diff --git a/src/util.ts b/src/util.ts index a83be83..8b606bb 100644 --- a/src/util.ts +++ b/src/util.ts @@ -1,3 +1,19 @@ +/* +Copyright 2018 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import * as http from "http"; import * as https from "https"; import { Intent } from "matrix-appservice-bridge"; diff --git a/test/config.ts b/test/config.ts index 611df1d..b6d7f44 100644 --- a/test/config.ts +++ b/test/config.ts @@ -1,3 +1,19 @@ +/* +Copyright 2018 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { argv } from "process"; import { Log } from "../src/log"; import * as WhyRunning from "why-is-node-running"; diff --git a/test/mocks/channel.ts b/test/mocks/channel.ts index 274169c..438bdc5 100644 --- a/test/mocks/channel.ts +++ b/test/mocks/channel.ts @@ -1,3 +1,19 @@ +/* +Copyright 2018 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import {MockMember} from "./member"; import {MockCollection} from "./collection"; import {Permissions, PermissionResolvable} from "discord.js"; diff --git a/test/mocks/collection.ts b/test/mocks/collection.ts index 7ae1279..ad83045 100644 --- a/test/mocks/collection.ts +++ b/test/mocks/collection.ts @@ -1,3 +1,19 @@ +/* +Copyright 2017, 2018 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Collection } from "discord.js"; // we are a test file and thus need those diff --git a/test/mocks/discordclient.ts b/test/mocks/discordclient.ts index 699e999..c3a9e41 100644 --- a/test/mocks/discordclient.ts +++ b/test/mocks/discordclient.ts @@ -1,3 +1,19 @@ +/* +Copyright 2017, 2018 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import {MockCollection} from "./collection"; import {MockGuild} from "./guild"; import {MockUser} from "./user"; diff --git a/test/mocks/discordclientfactory.ts b/test/mocks/discordclientfactory.ts index 8716f95..803dedc 100644 --- a/test/mocks/discordclientfactory.ts +++ b/test/mocks/discordclientfactory.ts @@ -1,3 +1,19 @@ +/* +Copyright 2017, 2018 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import {MockDiscordClient} from "./discordclient"; // we are a test file and thus need those diff --git a/test/mocks/emoji.ts b/test/mocks/emoji.ts index b380962..6e7400e 100644 --- a/test/mocks/emoji.ts +++ b/test/mocks/emoji.ts @@ -1,3 +1,18 @@ +/* +Copyright 2018 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ // we are a test file and thus need those /* tslint:disable:no-unused-expression max-file-line-count no-any */ diff --git a/test/mocks/guild.ts b/test/mocks/guild.ts index a61ade5..228decc 100644 --- a/test/mocks/guild.ts +++ b/test/mocks/guild.ts @@ -1,3 +1,19 @@ +/* +Copyright 2017, 2018 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import {MockCollection} from "./collection"; import {MockMember} from "./member"; import {MockEmoji} from "./emoji"; diff --git a/test/mocks/member.ts b/test/mocks/member.ts index a66f9b4..df3b22c 100644 --- a/test/mocks/member.ts +++ b/test/mocks/member.ts @@ -1,3 +1,19 @@ +/* +Copyright 2017, 2018 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import {MockCollection} from "./collection"; import {MockUser} from "./user"; import {MockRole} from "./role"; diff --git a/test/mocks/message.ts b/test/mocks/message.ts index a022939..148a743 100644 --- a/test/mocks/message.ts +++ b/test/mocks/message.ts @@ -1,3 +1,19 @@ +/* +Copyright 2018 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import * as Discord from "discord.js"; import { MockUser } from "./user"; import { MockCollection } from "./collection"; diff --git a/test/mocks/role.ts b/test/mocks/role.ts index 0dc1706..5318a07 100644 --- a/test/mocks/role.ts +++ b/test/mocks/role.ts @@ -1,3 +1,18 @@ +/* +Copyright 2018 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ // we are a test file and thus need those /* tslint:disable:no-unused-expression max-file-line-count no-any */ diff --git a/test/mocks/store.ts b/test/mocks/store.ts index 8c8b009..6d9e258 100644 --- a/test/mocks/store.ts +++ b/test/mocks/store.ts @@ -1,2 +1,18 @@ +/* +Copyright 2018 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + // we are a test file and thus need those /* tslint:disable:no-unused-expression max-file-line-count no-any */ diff --git a/test/mocks/user.ts b/test/mocks/user.ts index 869a4c3..ef12713 100644 --- a/test/mocks/user.ts +++ b/test/mocks/user.ts @@ -1,3 +1,19 @@ +/* +Copyright 2017, 2018 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { Presence } from "discord.js"; // we are a test file and thus need those diff --git a/test/test_channelsyncroniser.ts b/test/test_channelsyncroniser.ts index 91e6263..e4dc618 100644 --- a/test/test_channelsyncroniser.ts +++ b/test/test_channelsyncroniser.ts @@ -1,3 +1,19 @@ +/* +Copyright 2018 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import * as Chai from "chai"; import * as Discord from "discord.js"; import * as Proxyquire from "proxyquire"; diff --git a/test/test_clientfactory.ts b/test/test_clientfactory.ts index 4b92382..f31e9ee 100644 --- a/test/test_clientfactory.ts +++ b/test/test_clientfactory.ts @@ -1,3 +1,19 @@ +/* +Copyright 2018 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import * as Chai from "chai"; import * as Proxyquire from "proxyquire"; import {DiscordBridgeConfigAuth} from "../src/config"; diff --git a/test/test_config.ts b/test/test_config.ts index 3918065..ae92324 100644 --- a/test/test_config.ts +++ b/test/test_config.ts @@ -1,3 +1,19 @@ +/* +Copyright 2018 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import * as Chai from "chai"; import { DiscordBridgeConfig } from "../src/config"; diff --git a/test/test_configschema.ts b/test/test_configschema.ts index 439ba3c..e81019d 100644 --- a/test/test_configschema.ts +++ b/test/test_configschema.ts @@ -1,3 +1,19 @@ +/* +Copyright 2018 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import * as yaml from "js-yaml"; import * as Chai from "chai"; import { ConfigValidator } from "matrix-appservice-bridge"; diff --git a/test/test_discordbot.ts b/test/test_discordbot.ts index f936295..289cc9f 100644 --- a/test/test_discordbot.ts +++ b/test/test_discordbot.ts @@ -1,3 +1,19 @@ +/* +Copyright 2017, 2018 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import * as Chai from "chai"; import * as Proxyquire from "proxyquire"; import * as Discord from "discord.js"; diff --git a/test/test_discordmessageprocessor.ts b/test/test_discordmessageprocessor.ts index dab5bf7..a6f9b9d 100644 --- a/test/test_discordmessageprocessor.ts +++ b/test/test_discordmessageprocessor.ts @@ -1,3 +1,19 @@ +/* +Copyright 2017, 2018 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import * as Chai from "chai"; import * as Discord from "discord.js"; import { DiscordMessageProcessor, DiscordMessageProcessorOpts } from "../src/discordmessageprocessor"; diff --git a/test/test_log.ts b/test/test_log.ts index 2a05cfb..411169b 100644 --- a/test/test_log.ts +++ b/test/test_log.ts @@ -1,3 +1,19 @@ +/* +Copyright 2018 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import * as Chai from "chai"; import * as Proxyquire from "proxyquire"; import * as RealLog from "../src/log"; diff --git a/test/test_matrixeventprocessor.ts b/test/test_matrixeventprocessor.ts index d733bc2..f0b7185 100644 --- a/test/test_matrixeventprocessor.ts +++ b/test/test_matrixeventprocessor.ts @@ -1,3 +1,19 @@ +/* +Copyright 2018 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import * as Chai from "chai"; import * as Discord from "discord.js"; import * as Proxyquire from "proxyquire"; diff --git a/test/test_matrixmessageprocessor.ts b/test/test_matrixmessageprocessor.ts index 6241f55..f7b80a3 100644 --- a/test/test_matrixmessageprocessor.ts +++ b/test/test_matrixmessageprocessor.ts @@ -1,3 +1,19 @@ +/* +Copyright 2018 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import * as Chai from "chai"; import * as Discord from "discord.js"; import { MockGuild } from "./mocks/guild"; diff --git a/test/test_matrixroomhandler.ts b/test/test_matrixroomhandler.ts index fa524b9..2497770 100644 --- a/test/test_matrixroomhandler.ts +++ b/test/test_matrixroomhandler.ts @@ -1,3 +1,19 @@ +/* +Copyright 2018 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import * as Chai from "chai"; import * as Proxyquire from "proxyquire"; import {DiscordBridgeConfig} from "../src/config"; diff --git a/test/test_presencehandler.ts b/test/test_presencehandler.ts index be45dc2..fbd373a 100644 --- a/test/test_presencehandler.ts +++ b/test/test_presencehandler.ts @@ -1,3 +1,19 @@ +/* +Copyright 2017, 2018 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import * as Chai from "chai"; import * as Discord from "discord.js"; import * as Proxyquire from "proxyquire"; diff --git a/test/test_provisioner.ts b/test/test_provisioner.ts index 9c91af0..2d9b916 100644 --- a/test/test_provisioner.ts +++ b/test/test_provisioner.ts @@ -1,3 +1,19 @@ +/* +Copyright 2019 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import * as Chai from "chai"; import { Provisioner } from "../src/provisioner"; import { MockChannel } from "./mocks/channel"; diff --git a/test/test_store.ts b/test/test_store.ts index 2dd9407..cc628bd 100644 --- a/test/test_store.ts +++ b/test/test_store.ts @@ -1,3 +1,19 @@ +/* +Copyright 2017, 2018 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import * as Chai from "chai"; // import * as Proxyquire from "proxyquire"; import { DiscordStore, CURRENT_SCHEMA } from "../src/store"; diff --git a/test/test_usersyncroniser.ts b/test/test_usersyncroniser.ts index e71f743..973e46d 100644 --- a/test/test_usersyncroniser.ts +++ b/test/test_usersyncroniser.ts @@ -1,3 +1,19 @@ +/* +Copyright 2018 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import * as Chai from "chai"; import * as ChaiAsPromised from "chai-as-promised"; import { Bridge, RemoteUser } from "matrix-appservice-bridge"; diff --git a/test/test_util.ts b/test/test_util.ts index 5003a4f..3abf37a 100644 --- a/test/test_util.ts +++ b/test/test_util.ts @@ -1,3 +1,19 @@ +/* +Copyright 2018 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import * as Chai from "chai"; import { Util, ICommandAction, ICommandParameters } from "../src/util"; diff --git a/tools/addRoomsToDirectory.ts b/tools/addRoomsToDirectory.ts index 1266a4e..f4f4b9f 100644 --- a/tools/addRoomsToDirectory.ts +++ b/tools/addRoomsToDirectory.ts @@ -1,3 +1,19 @@ +/* +Copyright 2018 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + /* tslint:disable:no-console */ /** * Allows you to become an admin for a room the bot is in control of. diff --git a/tools/addbot.ts b/tools/addbot.ts index 6339d84..b8ef769 100644 --- a/tools/addbot.ts +++ b/tools/addbot.ts @@ -1,3 +1,19 @@ +/* +Copyright 2017, 2018 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + /* tslint:disable:no-bitwise no-console no-var-requires */ /** * Generates a URL you can use to authorize a bot with a guild. diff --git a/tools/adminme.ts b/tools/adminme.ts index 0b48b94..a458879 100644 --- a/tools/adminme.ts +++ b/tools/adminme.ts @@ -1,3 +1,19 @@ +/* +Copyright 2017, 2018 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + /* tslint:disable:no-console */ /** * Allows you to become an admin for a room the bot is in control of. diff --git a/tools/chanfix.ts b/tools/chanfix.ts index d5830f9..d06b4b9 100644 --- a/tools/chanfix.ts +++ b/tools/chanfix.ts @@ -1,3 +1,19 @@ +/* +Copyright 2018 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { AppServiceRegistration, ClientFactory, Bridge, Intent } from "matrix-appservice-bridge"; import * as yaml from "js-yaml"; import * as fs from "fs"; diff --git a/tools/ghostfix.ts b/tools/ghostfix.ts index 845e853..091ae37 100644 --- a/tools/ghostfix.ts +++ b/tools/ghostfix.ts @@ -1,3 +1,19 @@ +/* +Copyright 2018 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import { AppServiceRegistration, ClientFactory, Bridge } from "matrix-appservice-bridge"; import * as yaml from "js-yaml"; import * as fs from "fs"; diff --git a/tools/userClientTools.ts b/tools/userClientTools.ts index f55a606..0ce5bba 100644 --- a/tools/userClientTools.ts +++ b/tools/userClientTools.ts @@ -1,3 +1,19 @@ +/* +Copyright 2017, 2018 matrix-appservice-discord + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + import * as yaml from "js-yaml"; import * as fs from "fs"; import * as args from "command-line-args"; -- GitLab