Skip to content

Commit

Permalink
Relicense the samples under MIT.
Browse files Browse the repository at this point in the history
Closes #232.
  • Loading branch information
Nihlus committed Sep 7, 2022
1 parent 90272c3 commit 58e2dd7
Show file tree
Hide file tree
Showing 24 changed files with 98 additions and 400 deletions.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,15 @@ latest commit will be published to GitHub Packages.
The URL of the NuGet source is `https://nuget.pkg.github.com/Remora/index.json`.
As the NuGet source requires authentication, follow GitHub's instructions: [here][9]

## 6. Contributing
## 7. Licensing
Remora.Discord is released under the Lesser GNU Public License, version 3.0 or
later.

The code samples (both under the [Samples](Samples) directory and any snippets
in documentation, manuals, or other educational material) is licensed under the
MIT license.

## 8. Contributing
See [Contributing][2].

## Thanks
Expand Down
22 changes: 3 additions & 19 deletions Samples/Autocomplete/Commands/AutocompleteCommands.cs
Original file line number Diff line number Diff line change
@@ -1,23 +1,7 @@
//
// AutocompleteCommands.cs
//
// Author:
// Jarl Gullberg <jarl.gullberg@gmail.com>
//
// Copyright (c) Jarl Gullberg
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
// SPDX-FileName: AutocompleteCommands.cs
// SPDX-FileCopyrightText: Copyright (c) Jarl Gullberg
// SPDX-License-Identifier: MIT
//

using System.Drawing;
Expand Down
22 changes: 3 additions & 19 deletions Samples/Autocomplete/Commands/PredefinedColours.cs
Original file line number Diff line number Diff line change
@@ -1,23 +1,7 @@
//
// PredefinedColours.cs
//
// Author:
// Jarl Gullberg <jarl.gullberg@gmail.com>
//
// Copyright (c) Jarl Gullberg
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
// SPDX-FileName: PredefinedColours.cs
// SPDX-FileCopyrightText: Copyright (c) Jarl Gullberg
// SPDX-License-Identifier: MIT
//

#pragma warning disable CS1591, SA1602
Expand Down
22 changes: 3 additions & 19 deletions Samples/Autocomplete/DictionaryAutocompleteProvider.cs
Original file line number Diff line number Diff line change
@@ -1,23 +1,7 @@
//
// DictionaryAutocompleteProvider.cs
//
// Author:
// Jarl Gullberg <jarl.gullberg@gmail.com>
//
// Copyright (c) Jarl Gullberg
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
// SPDX-FileName: DictionaryAutocompleteProvider.cs
// SPDX-FileCopyrightText: Copyright (c) Jarl Gullberg
// SPDX-License-Identifier: MIT
//

using System.Collections.Generic;
Expand Down
22 changes: 3 additions & 19 deletions Samples/Autocomplete/Program.cs
Original file line number Diff line number Diff line change
@@ -1,23 +1,7 @@
//
// Program.cs
//
// Author:
// Jarl Gullberg <jarl.gullberg@gmail.com>
//
// Copyright (c) Jarl Gullberg
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
// SPDX-FileName: Program.cs
// SPDX-FileCopyrightText: Copyright (c) Jarl Gullberg
// SPDX-License-Identifier: MIT
//

using System;
Expand Down
22 changes: 3 additions & 19 deletions Samples/Caching/Program.cs
Original file line number Diff line number Diff line change
@@ -1,23 +1,7 @@
//
// Program.cs
//
// Author:
// Jarl Gullberg <jarl.gullberg@gmail.com>
//
// Copyright (c) Jarl Gullberg
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
// SPDX-FileName: Program.cs
// SPDX-FileCopyrightText: Copyright (c) Jarl Gullberg
// SPDX-License-Identifier: MIT
//

using System;
Expand Down
22 changes: 3 additions & 19 deletions Samples/DiceRoller/API/DiceRoll.cs
Original file line number Diff line number Diff line change
@@ -1,23 +1,7 @@
//
// DiceRoll.cs
//
// Author:
// Jarl Gullberg <jarl.gullberg@gmail.com>
//
// Copyright (c) Jarl Gullberg
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
// SPDX-FileName: DiceRoll.cs
// SPDX-FileCopyrightText: Copyright (c) Jarl Gullberg
// SPDX-License-Identifier: MIT
//

namespace Remora.Discord.Samples.DiceRoller.API;
Expand Down
22 changes: 3 additions & 19 deletions Samples/DiceRoller/API/RollResponse.cs
Original file line number Diff line number Diff line change
@@ -1,23 +1,7 @@
//
// RollResponse.cs
//
// Author:
// Jarl Gullberg <jarl.gullberg@gmail.com>
//
// Copyright (c) Jarl Gullberg
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
// SPDX-FileName: RollResponse.cs
// SPDX-FileCopyrightText: Copyright (c) Jarl Gullberg
// SPDX-License-Identifier: MIT
//

using System.Collections.Generic;
Expand Down
22 changes: 3 additions & 19 deletions Samples/DiceRoller/Commands/DiceRollCommands.cs
Original file line number Diff line number Diff line change
@@ -1,23 +1,7 @@
//
// DiceRollCommands.cs
//
// Author:
// Jarl Gullberg <jarl.gullberg@gmail.com>
//
// Copyright (c) Jarl Gullberg
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
// SPDX-FileName: DiceRollCommands.cs
// SPDX-FileCopyrightText: Copyright (c) Jarl Gullberg
// SPDX-License-Identifier: MIT
//

using System;
Expand Down
22 changes: 3 additions & 19 deletions Samples/DiceRoller/Program.cs
Original file line number Diff line number Diff line change
@@ -1,23 +1,7 @@
//
// Program.cs
//
// Author:
// Jarl Gullberg <jarl.gullberg@gmail.com>
//
// Copyright (c) Jarl Gullberg
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
// SPDX-FileName: Program.cs
// SPDX-FileCopyrightText: Copyright (c) Jarl Gullberg
// SPDX-License-Identifier: MIT
//

using System;
Expand Down
5 changes: 5 additions & 0 deletions Samples/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
<!-- Import outer build properties -->
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" />

<PropertyGroup>
<LegalLicense>MIT</LegalLicense>
<UseSPDXFileHeaders>true</UseSPDXFileHeaders>
</PropertyGroup>

<PropertyGroup>
<IsPackable>false</IsPackable>
</PropertyGroup>
Expand Down
22 changes: 3 additions & 19 deletions Samples/Interactivity/Commands/InteractiveCommands.cs
Original file line number Diff line number Diff line change
@@ -1,23 +1,7 @@
//
// InteractiveCommands.cs
//
// Author:
// Jarl Gullberg <jarl.gullberg@gmail.com>
//
// Copyright (c) Jarl Gullberg
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
// SPDX-FileName: InteractiveCommands.cs
// SPDX-FileCopyrightText: Copyright (c) Jarl Gullberg
// SPDX-License-Identifier: MIT
//

using System.Linq;
Expand Down
22 changes: 3 additions & 19 deletions Samples/Interactivity/Interactions/ColourDropdownInteractions.cs
Original file line number Diff line number Diff line change
@@ -1,23 +1,7 @@
//
// ColourDropdownInteractions.cs
//
// Author:
// Jarl Gullberg <jarl.gullberg@gmail.com>
//
// Copyright (c) Jarl Gullberg
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
// SPDX-FileName: ColourDropdownInteractions.cs
// SPDX-FileCopyrightText: Copyright (c) Jarl Gullberg
// SPDX-License-Identifier: MIT
//

using System.Collections.Generic;
Expand Down
22 changes: 3 additions & 19 deletions Samples/Interactivity/Interactions/ModalInteractions.cs
Original file line number Diff line number Diff line change
@@ -1,23 +1,7 @@
//
// ModalInteractions.cs
//
// Author:
// Jarl Gullberg <jarl.gullberg@gmail.com>
//
// Copyright (c) Jarl Gullberg
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
// SPDX-FileName: ModalInteractions.cs
// SPDX-FileCopyrightText: Copyright (c) Jarl Gullberg
// SPDX-License-Identifier: MIT
//

using System.Threading.Tasks;
Expand Down
22 changes: 3 additions & 19 deletions Samples/Interactivity/Program.cs
Original file line number Diff line number Diff line change
@@ -1,23 +1,7 @@
//
// Program.cs
//
// Author:
// Jarl Gullberg <jarl.gullberg@gmail.com>
//
// Copyright (c) Jarl Gullberg
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
// SPDX-FileName: Program.cs
// SPDX-FileCopyrightText: Copyright (c) Jarl Gullberg
// SPDX-License-Identifier: MIT
//

using System;
Expand Down
Loading

0 comments on commit 58e2dd7

Please sign in to comment.