Skip to content
This repository has been archived by the owner on Feb 16, 2021. It is now read-only.

Commit

Permalink
Windows time (#13)
Browse files Browse the repository at this point in the history
* Add travis CI integration

* Removed the dependency with discord[voice]

* Removed python 3.7, not available in travis CI

* Add idea to gitignore

* Add code to correct problem with windows -> Closes #3
  • Loading branch information
egguy authored and M0NsTeRRR committed Oct 19, 2019
1 parent 7710719 commit e9624ab
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,6 @@ venv.bak/

# afk bot ignore
config/config.py

# jetbrains IDE
.idea/
13 changes: 13 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
language: python
python:
- "3.5.3"
- "3.5-dev" # 3.5 development branch
- "3.6"
- "3.6-dev" # 3.6 development branch
- "3.7-dev" # 3.7 development branch
# command to install dependencies
install:
- pip install -r requirements.txt
# command to run tests
script:
- pytest
8 changes: 7 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@
# termes.
# ----------------------------------------------------------------------------

import platform
import os

if platform.system() == 'Windows':
os.environ["LC_TIME"] = "en_US"

import logging
from datetime import datetime
from babel.dates import format_date, format_datetime, format_time
Expand Down Expand Up @@ -108,4 +114,4 @@ async def unload(extension_name: str):
exc = '{}: {}'.format(type(e).__name__, e)
logger.error("Can't load extension %s: %s", extension, exc)

bot.run(config.TOKEN)
bot.run(config.TOKEN)

0 comments on commit e9624ab

Please sign in to comment.