Skip to content

droidicus/roboticAndroid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

roboticAndroid

Discord bot for data analytics

Get a copy of the project

  • 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

Set up environment on a Window 10 system

Install Miniconda

nbstripout setup

conda create -n nbstripout
conda activate nbstripout
conda install -c conda-forge nbstripout
  • Navigate to the cloned repo
nbstripout --install
conda deactivate nbstripout

Jupyter Lab environment

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

Discord conda environment

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

Tensorflow environment

(conda)

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

(pip)

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

How to run

To run the bot to gather data from the server history

  • Open the CMD prompt.
  • Navigate to the repository clone/copy
conda activate discord
python collect.py
conda deactivate

How to launch jupyter lab for data analysis

  • 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

About

Discord bot for data analytics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published