Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions .idea/CSDiscordBot.iml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/inspectionProfiles/profiles_settings.xml

This file was deleted.

4 changes: 0 additions & 4 deletions .idea/misc.xml

This file was deleted.

8 changes: 0 additions & 8 deletions .idea/modules.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,20 @@ Accept news for every section of a course rather than just course 001
Assignment storage that takes user input and stores it for later
Fill out rss information for most sections
Accept math commands
```

### Local Dev

Clone the repo, the run the powershell script `create_env.ps1`

Make sure to have `git` cli installed

Open powershell (preferably in administrator mode)
```cmd
.\create_env.ps1
```

Activate the environment at anytime using
```cmd
.\venv\Scripts\activate
```
29 changes: 29 additions & 0 deletions create_env.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Make sure powershell is allowed to execute scripts
$scope = Get-ExecutionPolicy
if ([string]$scope = "RemoteSigned") {
"All is good."
} else {
try {
Set-ExecutionPolicy RemoteSigned
Get-ExecutionPolicy
} catch {
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
Get-ExecutionPolicy
}
}


# Get the root of the repo
$root = $(git rev-parse --show-toplevel)
cd $root

# Create the virtual env
python -m venv venv

# activate it
.\venv\Scripts\activate

# upgrade pip
python -m pip install --upgrade pip
# install what we need
pip install -r requirements.txt
Binary file added requirements.txt
Binary file not shown.