Discord bot for data analytics
- Clone the repository
- Create a bot account with discord, copy the token that is generated during this process
- Open the
token
file in the root directory with a text editor - Paste the token copied above and ensure it is on a single line
- Save the
token
file
- See instructions here: https://docs.conda.io/en/latest/miniconda.html
conda create -n nbstripout
conda activate nbstripout
conda install -c conda-forge nbstripout
- Navigate to the cloned repo
nbstripout --install
conda deactivate nbstripout
conda create -n jupyterlab python jupyterlab ipympl widgetsnbextension nodejs ipywidgets
conda activate jupyterlab
set NODE_OPTIONS=--max-old-space-size=4096
jupyter labextension install @jupyter-widgets/jupyterlab-manager --no-build
jupyter labextension install jupyterlab-plotly --no-build
jupyter labextension install plotlywidget --no-build
jupyter labextension install jupyter-matplotlib --no-build
jupyter lab build
set NODE_OPTIONS=
conda deactivate
conda create -n discord python matplotlib plotly numpy pandas tqdm ipykernel fastparquet python-snappy pylint scipy ipympl
conda activate discord
pip install discord.py
python -m ipykernel install --user --name discord --display-name "Python (discord)"
conda deactivate
- Install
Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017 and 2019
from here: https://support.microsoft.com/help/2977003/the-latest-supported-visual-c-downloads - May need to manually install and add to the path CUDA Toolbox and cudnn library
- Install with either conda or pip (YMMV)
conda create -n tensorflow_conda python tensorflow-gpu tensorflow-hub tensorflow-datasets matplotlib plotly pandas tqdm ipykernel fastparquet python-snappy pylint ipympl pytables h5py seaborn
conda activate tensorflow_conda
python -m ipykernel install --user --name tensorflow_conda --display-name "Python (tensorflow_conda)"
pip install --ignore-installed h5py
conda deactivate
conda create tensorflow_pip python=3.7 pip
conda activate tensorflow_pip
pip install tensorflow tensorflow-hub tensorflow-datasets h5py matplotlib plotly pandas tqdm ipykernel fastparquet pylint ipympl seaborn
python -m ipykernel install --user --name tensorflow_pip --display-name "Python (tensorflow_pip)"
conda deactivate
- Open the CMD prompt.
- Navigate to the repository clone/copy
conda activate discord
python collect.py
conda deactivate
- Open the CMD prompt
- Navigate to the repository clone/copy
conda activate jupyterlab
jupyter lab
- Open the Jupyter Lab environment in the browser of your choice
- Open
analysis.ipynb
- Ensure that the
discord
python environment is selected - Run the cells of interest