diff --git a/src/bot.ts b/src/bot.ts index 5b1ccec2f0010b51dfbd66eb7bdd4fa45785bb8e..b4e3c165d857868da065b62473f96d5b4e8074f4 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 6635c2091375926e1cfe19f0bb4770bc1a659674..74932cf6215145a1292787055f61d4fa5422bde1 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 ef2393d236e4063692335515781cec0d33097812..478dbaa0cf0456898b359c874566064cb6ec81d7 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 a94c720f9f1ed9dbc86b06829594090ef136172a..ee6a32c40b942d2c335308e1b21cb690d39f4f40 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 4f500f6e17fa3d4cef1dae063a4459a7e6f6a672..fc6b74fddf1ef2c721d80b07405ba51fabc26630 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 0813ccc00fb5d752e27a7f09c174220a6476c4d8..867b0199ebfccfddadf10feb8c912f37f7936aa5 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 20fc7193fb46fde2112fcdc02cc934a2b43f6205..46c8a9387548a5fde822980ba157307c0985d035 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 69fdda0244902f9d05ebea5af5711d42d5f39aba..043bec08ba887e8b927a3b35eea6a7be7cc110a7 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 fe01572d1307ccaa63e3f1c35816cd534fa925c2..834f841b00cd19042b7e1223c180f408e340e387 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 e96ceb6c4b28b0c6ebd8cea095ce61a35db157cc..9f215f1b6d6aa32783030406660cb3dbf36dfed9 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 5a60bd3bfeb1d3be951a130f4c3e315c12d71ee3..63c04471dccfd60e48dfc493bfcd9f3b13a8fe15 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 3831efda20c18311e3dccf8dc5b96770c9989762..ce566f99189618da9642bad7b410ef5f61e34b7f 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 60cf3e772cc2ec882a50285d00730e2dbd1584b1..3f58e065c38dfbe2923b7a0eab89a2ae22a128da 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 816eaf0203fd40631d3d03fb06956baaa2ce7dd8..8787f455d7b3ab28e8294a1b936f6ed741385227 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 2822da1972710463b9e11fed4e95dec2721e61a3..e9fa7fe4be01134da08ed78a3d58a9d58233992a 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 ba6f505473d7302b73c8433689387dc22d3568b2..02659d9d4a0bb7e96c32a41d1d5224230128e1af 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 98fcf0e6a7daff5d371bed957754414e7822b154..fa025f280cdf2ff6d9527645e6fb8e2430af3fa4 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 7a36409fd7b8f709e30851d6d80faae07d565689..c7a706e742baedee76e940c67eba9491b865c901 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 e20e5770dfd147791ea0206eb6d1e79bb70bd1fd..6771e668a2d75225ee329795b4c3d7908235a583 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 8df12739f6b42be3f65b501f2e09a2a842748519..ed30eb3ee4c8bea0a699663d933452f9066f835f 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 449ecfb1ae5823e931a3b8e0de61ef5a5190d6c2..11c86888f23a6cfa5a4dcd90ff0ad1bc6e355840 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 285fbd2c5dff458429e25f6bbe3137fe31b8afe9..1aeae3314a2c1417c1b5f40daad751f3a339f751 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 80459a0c37a8d8bd6c57cc82241197ff08c1e215..f177634d3c69e9a3510df1e6d12b672457b4f411 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 eaa0be3798953eabbbde718c554ffb05161f102c..cde60f4ac17205b1f63b49a7bf3608dc670d5951 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 5c87ee0d5e548254d498641b68b1db5bf1c762fe..5071043a2188c0011c14c79ed0706a191681109b 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 9238bc9aaa4a703a8670ba1c0a88e3a79a61c404..9f1c1e2195891844ff469a8234d4bec7b381a667 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 ad5d4f982b827d7dbc667ee6c226da8bdeac4744..68980f092a70f18cf1c14893abf04ed0b35c7fd3 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 0c76bbb1a4dd35c15ee544e6b9cdd675f680fe99..62787dddc60ce7bb179dbad96148cf76e9be07e0 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 e1aee51b7b65c039b3a0416941426e11f1117aca..52319a05e89f30cace3df6f50520dc8d12000485 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 a83be839c2a1c25a529a1c90c0360be4067b2083..8b606bbf40b61d67562c244414ab7c42a7265b8f 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 611df1d675b7196cca50611e9c31221b4b87fbd7..b6d7f447d8cf09471281abc3d3c84107f5fe1b2b 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 274169c5d01b791cf777176ff1de34719811c446..438bdc568c4db8b49cdc669a99f912f81805b233 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 7ae12794fe23faa1ff9935764c331b3902bfb26e..ad830450b01ef44724ff4ec26a254112a035804f 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 699e999a98b15f5c72998ec93856e4028de01bb5..c3a9e41918422f840189b9e874bc3d62cbed4ca4 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 8716f95c880a95c3580b70abc7b868f29c9cbf3b..803dedc118f7cacbb9c44443840dee85c06c4c4b 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 b3809625d44f6cda58fbdbeecc97b99541c87b18..6e7400e1f0a3d6ef1865acb1bc1d4fb7368b19e5 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 a61ade5efacf2b73c36bf6a34cb52796e892dcfd..228decc0ca384b8f03d485946ba7f412272c5a48 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 a66f9b4d3e6937af618a1f4f95e319a19256cc7d..df3b22cb30848e8af65a2e8b914402d75529b08e 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 a022939e2b38c2bab3e558dc22f8bf512a53352e..148a743e81b98fc7a77743f68868d30a14104426 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 0dc170691e05aff69de04067b589c1d6acfadd9e..5318a07676aaab55cc94a18b9f62d76d9f2e4d08 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 8c8b009df9acf44628ea3f8bf711b0b728f309ed..6d9e25860997762ec828a31b7dd219e3512c21ca 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 869a4c386ec9d0cb69bf3e7d75833274705df802..ef127130107013e0407db9a28dcea1c4b9e5134e 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 91e626365efae3dae121291be55bac7b45a93fea..e4dc61866a91474669a313fbbe8dc17b18797227 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 4b92382e6eed73f8360ceb207db3f720956d3bb0..f31e9eeb5c39ca7d5bd98a9064cf78ab962d2f19 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 39180651bb562e120feeec14846754f6b12d7d18..ae923241bdb1a18d978cbaa39e52c915ca25577b 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 439ba3c415db72c85c55f8ed10801866b2cba59a..e81019de7cf370442690f34736f6054fb626f126 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 f936295a785a138f70ac310ed5f8dca36d119357..289cc9fa099b7367785180e5ca6e751e024ef5c7 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 dab5bf73ba798af35a37ec7fd768abb606d7533e..a6f9b9d2d83e997060c354a7af83f6cea7fe7cdc 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 2a05cfb39cc3d457284abde3ac41c8d0a9db66d8..411169b4a89bf593fe3a04c50c93bb05d2da848c 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 d733bc2d4f38dbb65c74ddb0b9d764dd34e9b9a4..f0b718543d5f0f05aa5c8d8fb0a5b875bbc006ac 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 6241f55d12187b2f4dad434d999c383e5f888f49..f7b80a3b4be2606960dabe29abfe2da681b09dfa 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 fa524b901470a6dac96e1f81a1cb7368fe7377ed..2497770ae9ce248047e53659bc7d5e340ddfc2a9 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 be45dc29cff0b257be35af7a40bc0f948b0accfa..fbd373ad23f8c3dba86cb38a8bff11040bc0ff3a 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 9c91af039fc51f5803c563fcf9266de1499bd414..2d9b9161cd030ece325f6baf1c50ac164013a42b 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 2dd94076c682a475e474b272a2726ba28f8f1fc8..cc628bde0871a6c42214fad45e61d46782763bc4 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 e71f743f8ee7acfcfaefaff0b58a3e76abf872f6..973e46d8393e6f75b4b726e4d36d7dad4859f773 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 5003a4fd7d09c66dc5d261becfeca75f2931a782..3abf37a66dcc22ac4bee0d26631c08c63b5a764d 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 1266a4e802dfff848ff14a126929ec99f0af7ed0..f4f4b9fbc39e4fcf2c79ea836e649d5d5ea916e3 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 6339d848af149e19a8954918e64eb29b66c16664..b8ef769b7ad9c5e5e9fe4e372f370531290d81cd 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 0b48b9421a2aadcda17b1762eb07e921b5ff974f..a45887968beffc0bee9d2039680531f1f3b90506 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 d5830f9858b3f27532d953ebfb7dab286a859b3f..d06b4b98c4dc9341076983789057509433e85521 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 845e853a2a34cb643522194567c5ca1f5c22419b..091ae37d006a469f953c09af97e12f5d19bafab5 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 f55a606941e7d2e34fc9501fc15a437beb622dbd..0ce5bbacb3d635beab9a6da0cd34a90c5b703003 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";