Skip to content

Commit

Permalink
Fixed bugs + docs development
Browse files Browse the repository at this point in the history
close #435
close #434
close #433
  • Loading branch information
StephanAkkerman committed Nov 7, 2023
1 parent 81a91da commit 825c411
Show file tree
Hide file tree
Showing 115 changed files with 39,836 additions and 49 deletions.
Binary file added docs/_build/doctrees/cogs.commands.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/cogs.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/cogs.listeners.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/cogs.loops.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/environment.pickle
Binary file not shown.
Binary file added docs/_build/doctrees/index.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/main.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/modules.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/util.doctree
Binary file not shown.
4 changes: 4 additions & 0 deletions docs/_build/html/.buildinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 4e03f49a9d142a89a2390178951d5cb8
tags: 645f666f9bcd5a90fca523b33c5a78b7
Empty file added docs/_build/html/.nojekyll
Empty file.
443 changes: 443 additions & 0 deletions docs/_build/html/_modules/cogs/commands/analyze.html

Large diffs are not rendered by default.

446 changes: 446 additions & 0 deletions docs/_build/html/_modules/cogs/commands/earnings.html

Large diffs are not rendered by default.

492 changes: 492 additions & 0 deletions docs/_build/html/_modules/cogs/commands/help.html

Large diffs are not rendered by default.

582 changes: 582 additions & 0 deletions docs/_build/html/_modules/cogs/commands/portfolio.html

Large diffs are not rendered by default.

575 changes: 575 additions & 0 deletions docs/_build/html/_modules/cogs/commands/sentiment.html

Large diffs are not rendered by default.

670 changes: 670 additions & 0 deletions docs/_build/html/_modules/cogs/commands/stock.html

Large diffs are not rendered by default.

382 changes: 382 additions & 0 deletions docs/_build/html/_modules/cogs/listeners/on_member_join.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,382 @@

<!DOCTYPE html>


<html lang="en" >

<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>cogs.listeners.on_member_join &#8212; FinTwit Bot 1.1 documentation</title>



<script data-cfasync="false">
document.documentElement.dataset.mode = localStorage.getItem("mode") || "";
document.documentElement.dataset.theme = localStorage.getItem("theme") || "light";
</script>

<!-- Loaded before other Sphinx assets -->
<link href="../../../_static/styles/theme.css?digest=e353d410970836974a52" rel="stylesheet" />
<link href="../../../_static/styles/bootstrap.css?digest=e353d410970836974a52" rel="stylesheet" />
<link href="../../../_static/styles/pydata-sphinx-theme.css?digest=e353d410970836974a52" rel="stylesheet" />


<link href="../../../_static/vendor/fontawesome/6.1.2/css/all.min.css?digest=e353d410970836974a52" rel="stylesheet" />
<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../_static/vendor/fontawesome/6.1.2/webfonts/fa-solid-900.woff2" />
<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../_static/vendor/fontawesome/6.1.2/webfonts/fa-brands-400.woff2" />
<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../_static/vendor/fontawesome/6.1.2/webfonts/fa-regular-400.woff2" />

<link rel="stylesheet" type="text/css" href="../../../_static/pygments.css?v=a746c00c" />
<link rel="stylesheet" type="text/css" href="../../../_static/graphviz.css?v=eafc0fe6" />

<!-- Pre-loaded scripts that we'll load fully later -->
<link rel="preload" as="script" href="../../../_static/scripts/bootstrap.js?digest=e353d410970836974a52" />
<link rel="preload" as="script" href="../../../_static/scripts/pydata-sphinx-theme.js?digest=e353d410970836974a52" />

<script src="../../../_static/documentation_options.js?v=7ff6d70c"></script>
<script src="../../../_static/doctools.js?v=888ff710"></script>
<script src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/cogs/listeners/on_member_join';</script>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta name="docsearch:language" content="en"/>
</head>


<body data-bs-spy="scroll" data-bs-target=".bd-toc-nav" data-offset="180" data-bs-root-margin="0px 0px -60%" data-default-mode="">



<a class="skip-link" href="#main-content">Skip to main content</a>

<input type="checkbox"
class="sidebar-toggle"
name="__primary"
id="__primary"/>
<label class="overlay overlay-primary" for="__primary"></label>

<input type="checkbox"
class="sidebar-toggle"
name="__secondary"
id="__secondary"/>
<label class="overlay overlay-secondary" for="__secondary"></label>

<div class="search-button__wrapper">
<div class="search-button__overlay"></div>
<div class="search-button__search-container">
<form class="bd-search d-flex align-items-center"
action="../../../search.html"
method="get">
<i class="fa-solid fa-magnifying-glass"></i>
<input type="search"
class="form-control"
name="q"
id="search-input"
placeholder="Search the docs ..."
aria-label="Search the docs ..."
autocomplete="off"
autocorrect="off"
autocapitalize="off"
spellcheck="false"/>
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form></div>
</div>

<nav class="bd-header navbar navbar-expand-lg bd-navbar">
<div class="bd-header__inner bd-page-width">
<label class="sidebar-toggle primary-toggle" for="__primary">
<span class="fa-solid fa-bars"></span>
</label>

<div class="navbar-header-items__start">

<div class="navbar-item">


<a class="navbar-brand logo" href="../../../index.html">





<p class="title logo__title">FinTwit Bot 1.1 documentation</p>

</a></div>

</div>


<div class="col-lg-9 navbar-header-items">

<div class="me-auto navbar-header-items__center">

<div class="navbar-item"><nav class="navbar-nav">
<p class="sidebar-header-items__title"
role="heading"
aria-level="1"
aria-label="Site Navigation">
Site Navigation
</p>
<ul class="bd-navbar-elements navbar-nav">

<li class="nav-item">
<a class="nav-link nav-internal" href="../../../modules.html">
Modules
</a>
</li>

</ul>
</nav></div>

</div>


<div class="navbar-header-items__end">

<div class="navbar-item navbar-persistent--container">

<script>
document.write(`
<button class="btn btn-sm navbar-btn search-button search-button__button" title="Search" aria-label="Search" data-bs-placement="bottom" data-bs-toggle="tooltip">
<i class="fa-solid fa-magnifying-glass"></i>
</button>
`);
</script>
</div>


<div class="navbar-item">
<script>
document.write(`
<button class="theme-switch-button btn btn-sm btn-outline-primary navbar-btn rounded-circle" title="light/dark" aria-label="light/dark" data-bs-placement="bottom" data-bs-toggle="tooltip">
<span class="theme-switch" data-mode="light"><i class="fa-solid fa-sun"></i></span>
<span class="theme-switch" data-mode="dark"><i class="fa-solid fa-moon"></i></span>
<span class="theme-switch" data-mode="auto"><i class="fa-solid fa-circle-half-stroke"></i></span>
</button>
`);
</script></div>

</div>

</div>


<div class="navbar-persistent--mobile">
<script>
document.write(`
<button class="btn btn-sm navbar-btn search-button search-button__button" title="Search" aria-label="Search" data-bs-placement="bottom" data-bs-toggle="tooltip">
<i class="fa-solid fa-magnifying-glass"></i>
</button>
`);
</script>
</div>



</div>

</nav>

<div class="bd-container">
<div class="bd-container__inner bd-page-width">

<div class="bd-sidebar-primary bd-sidebar hide-on-wide">



<div class="sidebar-header-items sidebar-primary__section">


<div class="sidebar-header-items__center">

<div class="navbar-item"><nav class="navbar-nav">
<p class="sidebar-header-items__title"
role="heading"
aria-level="1"
aria-label="Site Navigation">
Site Navigation
</p>
<ul class="bd-navbar-elements navbar-nav">

<li class="nav-item">
<a class="nav-link nav-internal" href="../../../modules.html">
Modules
</a>
</li>

</ul>
</nav></div>

</div>



<div class="sidebar-header-items__end">

<div class="navbar-item">
<script>
document.write(`
<button class="theme-switch-button btn btn-sm btn-outline-primary navbar-btn rounded-circle" title="light/dark" aria-label="light/dark" data-bs-placement="bottom" data-bs-toggle="tooltip">
<span class="theme-switch" data-mode="light"><i class="fa-solid fa-sun"></i></span>
<span class="theme-switch" data-mode="dark"><i class="fa-solid fa-moon"></i></span>
<span class="theme-switch" data-mode="auto"><i class="fa-solid fa-circle-half-stroke"></i></span>
</button>
`);
</script></div>

</div>

</div>


<div class="sidebar-primary-items__end sidebar-primary__section">
</div>

<div id="rtd-footer-container"></div>


</div>

<main id="main-content" class="bd-main">


<div class="bd-content">
<div class="bd-article-container">

<div class="bd-header-article">
<div class="header-article-items header-article__inner">

<div class="header-article-items__start">

<div class="header-article-item">



<nav aria-label="Breadcrumbs">
<ul class="bd-breadcrumbs" role="navigation" aria-label="Breadcrumb">

<li class="breadcrumb-item breadcrumb-home">
<a href="../../../index.html" class="nav-link" aria-label="Home">
<i class="fa-solid fa-home"></i>
</a>
</li>

<li class="breadcrumb-item"><a href="../../index.html" class="nav-link">Module code</a></li>

<li class="breadcrumb-item active" aria-current="page">cogs.listeners.on_member_join</li>
</ul>
</nav>
</div>

</div>


</div>
</div>




<div id="searchbox"></div>
<article class="bd-article" role="main">

<h1>Source code for cogs.listeners.on_member_join</h1><div class="highlight"><pre>
<span></span><span class="c1">##&gt; Imports</span>
<span class="c1"># &gt; Discord dependencies</span>
<span class="kn">from</span> <span class="nn">discord.ext</span> <span class="kn">import</span> <span class="n">commands</span>

<div class="viewcode-block" id="On_member_join">
<a class="viewcode-back" href="../../../cogs.listeners.html#cogs.listeners.on_member_join.On_member_join">[docs]</a>
<span class="k">class</span> <span class="nc">On_member_join</span><span class="p">(</span><span class="n">commands</span><span class="o">.</span><span class="n">Cog</span><span class="p">):</span>
<span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">bot</span><span class="p">):</span>
<span class="bp">self</span><span class="o">.</span><span class="n">bot</span> <span class="o">=</span> <span class="n">bot</span>

<div class="viewcode-block" id="On_member_join.on_member_join">
<a class="viewcode-back" href="../../../cogs.listeners.html#cogs.listeners.on_member_join.On_member_join.on_member_join">[docs]</a>
<span class="nd">@commands</span><span class="o">.</span><span class="n">Cog</span><span class="o">.</span><span class="n">listener</span><span class="p">()</span>
<span class="k">async</span> <span class="k">def</span> <span class="nf">on_member_join</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">member</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kc">None</span><span class="p">:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot; Sends a private message to the member when they join the server &quot;&quot;&quot;</span>

<span class="k">await</span> <span class="n">member</span><span class="o">.</span><span class="n">send</span><span class="p">(</span><span class="s2">&quot;&quot;&quot;Welcome to the server! You can use `/help` to get a list of all commands available to you.</span>
<span class="s2">For more information about a specific command, use `/help &lt;command&gt;`.</span>
<span class="s2">Be sure to add your portfolio API read-only keys to your profile using `/portfolio`.&quot;&quot;&quot;</span><span class="p">)</span></div>
</div>


<span class="k">def</span> <span class="nf">setup</span><span class="p">(</span><span class="n">bot</span><span class="p">):</span>
<span class="n">bot</span><span class="o">.</span><span class="n">add_cog</span><span class="p">(</span><span class="n">On_member_join</span><span class="p">(</span><span class="n">bot</span><span class="p">))</span>
</pre></div>

</article>



<footer class="bd-footer-article">

<div class="footer-article-items footer-article__inner">

<div class="footer-article-item"><!-- Previous / next buttons -->
<div class="prev-next-area">
</div></div>

</div>

</footer>

</div>




</div>
<footer class="bd-footer-content">

</footer>

</main>
</div>
</div>

<!-- Scripts loaded after <body> so the DOM is not blocked -->
<script src="../../../_static/scripts/bootstrap.js?digest=e353d410970836974a52"></script>
<script src="../../../_static/scripts/pydata-sphinx-theme.js?digest=e353d410970836974a52"></script>

<footer class="bd-footer">
<div class="bd-footer__inner bd-page-width">

<div class="footer-items__start">

<div class="footer-item">
<p class="copyright">

© Copyright 2023, Stephan Akkerman.
<br/>

</p>
</div>

<div class="footer-item">
<p class="sphinx-version">
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.2.3.
<br/>
</p>
</div>

</div>


<div class="footer-items__end">

<div class="footer-item"><p class="theme-version">
Built with the <a href="https://pydata-sphinx-theme.readthedocs.io/en/stable/index.html">PyData Sphinx Theme</a> 0.13.3.
</p></div>

</div>

</div>

</footer>
</body>
</html>
Loading

0 comments on commit 825c411

Please sign in to comment.