Skip to content

Commit

Permalink
Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
anvorgesa committed Jul 24, 2024
1 parent f9f5819 commit b11a288
Show file tree
Hide file tree
Showing 15 changed files with 232 additions and 129 deletions.
8 changes: 4 additions & 4 deletions 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="turbo-cache-control" content="no-cache" data-turbo-track="reload" data-track-token="3.5.0.754902470857">
<meta name="turbo-cache-control" content="no-cache" data-turbo-track="reload" data-track-token="3.5.0.775101718812">

<!-- See retype.com -->
<meta name="generator" content="Retype 3.5.0">
Expand All @@ -27,11 +27,11 @@

<script data-cfasync="false">(function () { var el = document.documentElement, m = localStorage.getItem("doc_theme"), wm = window.matchMedia; if (m === "dark" || (!m && wm && wm("(prefers-color-scheme: dark)").matches)) { el.classList.add("dark") } else { el.classList.remove("dark") } })();</script>

<link href="/resources/css/retype.css?v=3.5.0.754902470857" rel="stylesheet">
<link href="/resources/css/retype.css?v=3.5.0.775101718812" rel="stylesheet">

<script data-cfasync="false" src="/resources/js/config.js?v=3.5.0.754902470857" data-turbo-eval="false" defer></script>
<script data-cfasync="false" src="/resources/js/config.js?v=3.5.0.775101718812" data-turbo-eval="false" defer></script>
<script data-cfasync="false" src="/resources/js/retype.js?v=3.5.0" data-turbo-eval="false" defer></script>
<script id="lunr-js" data-cfasync="false" src="/resources/js/lunr.js?v=3.5.0.754902470857" data-turbo-eval="false" defer></script>
<script id="lunr-js" data-cfasync="false" src="/resources/js/lunr.js?v=3.5.0.775101718812" data-turbo-eval="false" defer></script>
</head>
<body>
<div id="docs-app" class="relative text-base antialiased text-gray-700 bg-white font-body dark:bg-dark-850 dark:text-dark-300">
Expand Down
171 changes: 111 additions & 60 deletions addons/banannouncer/index.html → addons/index.html

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -3,38 +3,39 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="turbo-cache-control" content="no-cache" data-turbo-track="reload" data-track-token="3.5.0.754642696395">
<meta name="turbo-cache-control" content="no-cache" data-turbo-track="reload" data-track-token="3.5.0.775101718812">

<!-- See retype.com -->
<meta name="generator" content="Retype 3.5.0">

<!-- Primary Meta Tags -->
<title>Addon</title>
<meta name="title" content="Addon">
<meta name="description" content="(Main page)[]">
<title>Addon creation</title>
<meta name="title" content="Addon creation">
<meta name="description" content="Maven">

<!-- Canonical -->
<link rel="canonical" href="https://spicord.org/addons/template/">
<link rel="canonical" href="https://spicord.org/development/addon-creation/">

<!-- Open Graph / Facebook -->
<meta property="og:type" content="website">
<meta property="og:url" content="https://spicord.org/addons/template/">
<meta property="og:title" content="Addon">
<meta property="og:description" content="(Main page)[]">
<meta property="og:url" content="https://spicord.org/development/addon-creation/">
<meta property="og:title" content="Addon creation">
<meta property="og:description" content="Maven">

<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:url" content="https://spicord.org/addons/template/">
<meta property="twitter:title" content="Addon">
<meta property="twitter:description" content="(Main page)[]">
<meta property="twitter:url" content="https://spicord.org/development/addon-creation/">
<meta property="twitter:title" content="Addon creation">
<meta property="twitter:description" content="Maven">

<script data-cfasync="false">(function () { var el = document.documentElement, m = localStorage.getItem("doc_theme"), wm = window.matchMedia; if (m === "dark" || (!m && wm && wm("(prefers-color-scheme: dark)").matches)) { el.classList.add("dark") } else { el.classList.remove("dark") } })();</script>

<link href="../../resources/css/retype.css?v=3.5.0.754642696395" rel="stylesheet">
<link href="../../resources/css/retype.css?v=3.5.0.775101718812" rel="stylesheet">

<script data-cfasync="false" src="../../resources/js/config.js?v=3.5.0.754642696395" data-turbo-eval="false" defer></script>
<script data-cfasync="false" src="../../resources/js/config.js?v=3.5.0.775101718812" data-turbo-eval="false" defer></script>
<script data-cfasync="false" src="../../resources/js/retype.js?v=3.5.0" data-turbo-eval="false" defer></script>
<script id="lunr-js" data-cfasync="false" src="../../resources/js/lunr.js?v=3.5.0.754642696395" data-turbo-eval="false" defer></script>
<script id="lunr-js" data-cfasync="false" src="../../resources/js/lunr.js?v=3.5.0.775101718812" data-turbo-eval="false" defer></script>
<script id="prism-js" data-cfasync="false" src="../../resources/js/prism.js?v=3.5.0.775101718812" defer></script>
</head>
<body>
<div id="docs-app" class="relative text-base antialiased text-gray-700 bg-white font-body dark:bg-dark-850 dark:text-dark-300">
Expand Down Expand Up @@ -175,13 +176,57 @@
<!-- Rendered if sidebar right is enabled -->
<div id="docs-sidebar-right-toggle"></div>
<!-- Page content -->
<doc-anchor-target id="addon" class="break-words">
<doc-anchor-target id="addon-creation" class="break-words">
<h1>
<doc-anchor-trigger class="header-anchor-trigger" to="#addon">#</doc-anchor-trigger>
<span>Addon</span>
<doc-anchor-trigger class="header-anchor-trigger" to="#addon-creation">#</doc-anchor-trigger>
<span>Addon creation</span>
</h1>
</doc-anchor-target>
<p>(Main page)[]</p>
<p>Maven</p>
<div class="codeblock-wrapper"><doc-codeblock>
<pre class="language-markup"><code v-pre class="language-markup">&lt;dependency&gt;
&lt;groupId&gt;org.spicord&lt;/groupId&gt;
&lt;artifactId&gt;spicord-common&lt;/artifactId&gt;
&lt;version&gt;5.3.0&lt;/version&gt;
&lt;scope&gt;provided&lt;/scope&gt;
&lt;/dependency&gt;</code></pre>
</doc-codeblock></div>
<p>Addon class creation</p>
<div class="codeblock-wrapper"><doc-codeblock>
<pre class="language-java"><code v-pre class="language-java">import org.spicord.api.addon.SimpleAddon;
import org.spicord.bot.DiscordBot;

import net.dv8tion.jda.api.JDA;

public class YourAddon extends SimpleAddon {

public YourAddon() {
super(&quot;YourAddonName&quot;, &quot;your_addon_id&quot;, &quot;TheAuthor&quot;);
}

@Override
public void onReady(DiscordBot bot) {
// If you know how to use the JDA api you can go ahead and use it as usual.
JDA jda = bot.getJda();
}
}</code></pre>
</doc-codeblock></div>
<p>Example addon registration with a spigot plugin</p>
<div class="codeblock-wrapper"><doc-codeblock>
<pre class="language-java"><code v-pre class="language-java">import org.spicord.SpicordLoader;

public class YourPlugin extends JavaPlugin {

@Override
public void onEnable() {
YourAddon addonInstance = new YourAddon();

SpicordLoader.addStartupListener(spicord -&gt; {
spicord.getAddonManager().registerAddon(addonInstance);
});
}
}</code></pre>
</doc-codeblock></div>


<!-- Required only on API pages -->
Expand All @@ -191,20 +236,20 @@ <h1>

<nav class="flex mt-14">
<div class="w-1/2">
<a class="px-5 py-4 h-full flex items-center break-normal font-medium text-blue-500 dark:text-blue-400 border border-gray-300 hover:border-gray-400 dark:border-dark-650 dark:hover:border-dark-450 rounded-l-lg transition-colors duration-150 relative hover:z-5" href="../../">
<a class="px-5 py-4 h-full flex items-center break-normal font-medium text-blue-500 dark:text-blue-400 border border-gray-300 hover:border-gray-400 dark:border-dark-650 dark:hover:border-dark-450 rounded-l-lg transition-colors duration-150 relative hover:z-5" href="../../knownissues/">
<svg xmlns="http://www.w3.org/2000/svg" class="mr-3" width="24" height="24" viewBox="0 0 24 24" fill="currentColor" overflow="visible"><path d="M19 11H7.41l5.29-5.29a.996.996 0 10-1.41-1.41l-7 7a1 1 0 000 1.42l7 7a1.024 1.024 0 001.42-.01.996.996 0 000-1.41L7.41 13H19c.55 0 1-.45 1-1s-.45-1-1-1z" /><path fill="none" d="M0 0h24v24H0z" /></svg>
<span>
<span class="block text-xs font-normal text-gray-400 dark:text-dark-400">Previous</span>
<span class="block mt-1">Introduction</span>
<span class="block mt-1">Troubleshooting</span>
</span>
</a>
</div>

<div class="w-1/2">
<a class="px-5 py-4 -mx-px h-full flex items-center justify-end break-normal font-medium text-blue-500 dark:text-blue-400 border border-gray-300 hover:border-gray-400 dark:border-dark-650 dark:hover:border-dark-450 rounded-r-lg transition-colors duration-150 relative hover:z-5" href="../../getting-started/bot-creation/">
<a class="px-5 py-4 -mx-px h-full flex items-center justify-end break-normal font-medium text-blue-500 dark:text-blue-400 border border-gray-300 hover:border-gray-400 dark:border-dark-650 dark:hover:border-dark-450 rounded-r-lg transition-colors duration-150 relative hover:z-5" href="../../addons/">
<span>
<span class="block text-xs font-normal text-right text-gray-400 dark:text-dark-400">Next</span>
<span class="block mt-1">Bot creation</span>
<span class="block mt-1">List of addons</span>
</span>
<svg xmlns="http://www.w3.org/2000/svg" class="ml-3" width="24" height="24" viewBox="0 0 24 24" fill="currentColor" overflow="visible"><path d="M19.92 12.38a1 1 0 00-.22-1.09l-7-7a.996.996 0 10-1.41 1.41l5.3 5.3H5c-.55 0-1 .45-1 1s.45 1 1 1h11.59l-5.29 5.29a.996.996 0 000 1.41c.19.2.44.3.7.3s.51-.1.71-.29l7-7c.09-.09.16-.21.21-.33z" /><path fill="none" d="M0 0h24v24H0z" /></svg>
</a>
Expand All @@ -219,7 +264,7 @@ <h1>
<ul class="flex flex-wrap items-center text-sm">
</ul>
</div>
<div class="docs-copyright py-2 text-gray-500 dark:text-dark-350 text-sm leading-relaxed"><p>© Copyright 2023. All rights reserved.</p></div>
<div class="docs-copyright py-2 text-gray-500 dark:text-dark-350 text-sm leading-relaxed"><p>© Copyright 2024. All rights reserved.</p></div>
</footer>
</div>
</div>
Expand Down Expand Up @@ -248,6 +293,6 @@ <h1>

<div id="docs-overlay-target"></div>

<script data-cfasync="false">window.__DOCS__ = { "title": "Addon", level: 2, icon: "file", hasPrism: false, hasMermaid: false, hasMath: false, tocDepth: 23 }</script>
<script data-cfasync="false">window.__DOCS__ = { "title": "Addon creation", level: 2, icon: "file", hasPrism: true, hasMermaid: false, hasMath: false, tocDepth: 23 }</script>
</body>
</html>
10 changes: 5 additions & 5 deletions getting-started/bot-creation/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="turbo-cache-control" content="no-cache" data-turbo-track="reload" data-track-token="3.5.0.754902470857">
<meta name="turbo-cache-control" content="no-cache" data-turbo-track="reload" data-track-token="3.5.0.775101718812">

<!-- See retype.com -->
<meta name="generator" content="Retype 3.5.0">
Expand All @@ -30,11 +30,11 @@

<script data-cfasync="false">(function () { var el = document.documentElement, m = localStorage.getItem("doc_theme"), wm = window.matchMedia; if (m === "dark" || (!m && wm && wm("(prefers-color-scheme: dark)").matches)) { el.classList.add("dark") } else { el.classList.remove("dark") } })();</script>

<link href="../../resources/css/retype.css?v=3.5.0.754902470857" rel="stylesheet">
<link href="../../resources/css/retype.css?v=3.5.0.775101718812" rel="stylesheet">

<script data-cfasync="false" src="../../resources/js/config.js?v=3.5.0.754902470857" data-turbo-eval="false" defer></script>
<script data-cfasync="false" src="../../resources/js/config.js?v=3.5.0.775101718812" data-turbo-eval="false" defer></script>
<script data-cfasync="false" src="../../resources/js/retype.js?v=3.5.0" data-turbo-eval="false" defer></script>
<script id="lunr-js" data-cfasync="false" src="../../resources/js/lunr.js?v=3.5.0.754902470857" data-turbo-eval="false" defer></script>
<script id="lunr-js" data-cfasync="false" src="../../resources/js/lunr.js?v=3.5.0.775101718812" data-turbo-eval="false" defer></script>
</head>
<body>
<div id="docs-app" class="relative text-base antialiased text-gray-700 bg-white font-body dark:bg-dark-850 dark:text-dark-300">
Expand Down Expand Up @@ -240,7 +240,7 @@ <h2>
<ul class="flex flex-wrap items-center text-sm">
</ul>
</div>
<div class="docs-copyright py-2 text-gray-500 dark:text-dark-350 text-sm leading-relaxed"><p>© Copyright 2023. All rights reserved.</p></div>
<div class="docs-copyright py-2 text-gray-500 dark:text-dark-350 text-sm leading-relaxed"><p>© Copyright 2024. All rights reserved.</p></div>
</footer>
</div>
</div>
Expand Down
10 changes: 5 additions & 5 deletions getting-started/configuration/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="turbo-cache-control" content="no-cache" data-turbo-track="reload" data-track-token="3.5.0.754902470857">
<meta name="turbo-cache-control" content="no-cache" data-turbo-track="reload" data-track-token="3.5.0.775101718812">

<!-- See retype.com -->
<meta name="generator" content="Retype 3.5.0">
Expand All @@ -30,11 +30,11 @@

<script data-cfasync="false">(function () { var el = document.documentElement, m = localStorage.getItem("doc_theme"), wm = window.matchMedia; if (m === "dark" || (!m && wm && wm("(prefers-color-scheme: dark)").matches)) { el.classList.add("dark") } else { el.classList.remove("dark") } })();</script>

<link href="../../resources/css/retype.css?v=3.5.0.754902470857" rel="stylesheet">
<link href="../../resources/css/retype.css?v=3.5.0.775101718812" rel="stylesheet">

<script data-cfasync="false" src="../../resources/js/config.js?v=3.5.0.754902470857" data-turbo-eval="false" defer></script>
<script data-cfasync="false" src="../../resources/js/config.js?v=3.5.0.775101718812" data-turbo-eval="false" defer></script>
<script data-cfasync="false" src="../../resources/js/retype.js?v=3.5.0" data-turbo-eval="false" defer></script>
<script id="lunr-js" data-cfasync="false" src="../../resources/js/lunr.js?v=3.5.0.754902470857" data-turbo-eval="false" defer></script>
<script id="lunr-js" data-cfasync="false" src="../../resources/js/lunr.js?v=3.5.0.775101718812" data-turbo-eval="false" defer></script>
</head>
<body>
<div id="docs-app" class="relative text-base antialiased text-gray-700 bg-white font-body dark:bg-dark-850 dark:text-dark-300">
Expand Down Expand Up @@ -233,7 +233,7 @@ <h3>
<ul class="flex flex-wrap items-center text-sm">
</ul>
</div>
<div class="docs-copyright py-2 text-gray-500 dark:text-dark-350 text-sm leading-relaxed"><p>© Copyright 2023. All rights reserved.</p></div>
<div class="docs-copyright py-2 text-gray-500 dark:text-dark-350 text-sm leading-relaxed"><p>© Copyright 2024. All rights reserved.</p></div>
</footer>
</div>
</div>
Expand Down
Loading

0 comments on commit b11a288

Please sign in to comment.