Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Working Pre-alpha #8

Open
wants to merge 89 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
89 commits
Select commit Hold shift + click to select a range
9e83a6c
Admin by username insted of ID
Pandry Nov 1, 2018
7eb94f4
Added requirements via 'pip3 freeze > requirements.txt'
Pandry Nov 1, 2018
72c4732
Added Dockerfile
Pandry Nov 1, 2018
20c0335
Updateg group values
Pandry Nov 1, 2018
aec8c3b
Copy only the script
Pandry Nov 1, 2018
3d40067
Fixed Bug: random crash
Pandry Nov 2, 2018
ae3e408
Added 'CanAddAdmin' permission and permissions helper
Pandry Nov 2, 2018
e31cd5c
Added permission to add list grant and removal
Pandry Nov 2, 2018
08acb67
Fixed various listing issues
Pandry Nov 2, 2018
c628cee
Ingore SQL viewer program bin file
Pandry Nov 2, 2018
e549751
Updated dockerfile and removed unused depencecies - Download size fro…
Pandry Nov 2, 2018
6116457
Aded ping function
Pandry Nov 2, 2018
bf32d66
Added ping function reply only to admins
Pandry Nov 2, 2018
999894c
Added empty list check
Pandry Nov 2, 2018
bd7528a
Added missing commits
Pandry Nov 2, 2018
59b661d
Various Bugfixes
Pandry Nov 2, 2018
993d1dc
Added die function - (actually restarts inside docker)
Pandry Nov 2, 2018
82d7389
Added aliases to commands
Pandry Nov 2, 2018
38f6d0e
Added @RagazzaSmarties' help message
Pandry Nov 2, 2018
40570d6
added list delletaion and various fixes
Pandry Nov 3, 2018
745b8c4
fixed code version
Pandry Nov 3, 2018
dbc8a9d
Aggiunto tasto chiudi per i messsaggi - elimina il messaggio del bot …
Pandry Nov 3, 2018
56a6761
Cleanup
Pandry Nov 3, 2018
7c884b5
Biography autoclean
Pandry Nov 3, 2018
0404e2c
Added privilege message
Pandry Nov 3, 2018
4db86ed
Added user selection on privilege message
Pandry Nov 3, 2018
c0aa5d7
Added message delation on list listing function
Pandry Nov 3, 2018
1528965
Added close message and provided message on user not found
Pandry Nov 3, 2018
029e45f
Added close button on ping reponse
Pandry Nov 3, 2018
ddc3581
Fixed help message
Pandry Nov 3, 2018
f77b7ed
Fixed missing close message on privs
Pandry Nov 3, 2018
52c4c6d
Bugfixes + admins can delete any message
Pandry Nov 3, 2018
2001c58
Updated version number to correct one
Pandry Nov 3, 2018
d2fcb62
Added close on deletion list
Pandry Nov 3, 2018
290c2cb
Added bot delete functio nad improves nickname saving function
Pandry Nov 3, 2018
1c5f15a
Version bumo
Pandry Nov 3, 2018
47df52c
/del function bugfix
Pandry Nov 3, 2018
16963e5
permissions text obtained by a function and added permissions to inli…
Pandry Nov 3, 2018
ae621de
bump version
Pandry Nov 3, 2018
ce42c00
usage of str.startswith istead of checking if str is contained
Pandry Nov 3, 2018
4fef82c
check for list tang on first sentence instead of entire messange. And…
Pandry Nov 3, 2018
fcf9885
Versin bump
Pandry Nov 3, 2018
5d5b8ce
Added inline query for subscribed lists
Pandry Nov 3, 2018
0fb87f2
Forgot to replace str after bluescren
Pandry Nov 3, 2018
69d10c2
Added username for user subscribed lists
Pandry Nov 3, 2018
6714690
Version bump
Pandry Nov 3, 2018
194904d
Added message deletion to unsubscribe command
Pandry Nov 3, 2018
3a07804
Ignore @ sign in inquery search
Pandry Nov 3, 2018
04743bf
Fixed list deletion pagination issue
Pandry Nov 3, 2018
d01cda1
Added inline query limit
Pandry Nov 3, 2018
4a5a440
Added completelist
Pandry Nov 3, 2018
fb53d0d
Fixed join pagination
Pandry Nov 3, 2018
9162d47
Added list creation message close button
Pandry Nov 3, 2018
131335d
renamed abort text on list creation
Pandry Nov 3, 2018
70dec3e
Semplified process of list creation termination and version bump
Pandry Nov 3, 2018
bdee7f8
Added alias for registration command
Pandry Nov 3, 2018
ac2ba8f
Added support for empty list
Pandry Nov 3, 2018
e8bd5c3
Added strings to message
Pandry Nov 4, 2018
3d02b4d
Minor bugfix - privs gives user's own privileges on invoke with wrong…
Pandry Nov 4, 2018
778316b
Created SetBio method
Pandry Nov 4, 2018
64101b6
Removed permission binary value 'staticness'
Pandry Nov 4, 2018
51aeea9
Added generic permission methods
Pandry Nov 4, 2018
cbee366
Added multiple list tagging and version bump
Pandry Nov 4, 2018
21fb258
User active on default
Pandry Nov 4, 2018
f7df1b1
User active on default and bio remove button
Pandry Nov 4, 2018
c487c1f
Added RAW SQL executer and bd commit command
Pandry Nov 4, 2018
ea603a1
Set token as env var
Pandry Nov 5, 2018
1ee39f9
Forces user to set nickname
Pandry Nov 5, 2018
3c82d3d
Little bugfix
Pandry Nov 7, 2018
567ce25
Updated help message
Pandry Nov 7, 2018
514493d
Added intro message
Pandry Nov 7, 2018
26724c7
Added on-join message and forgot colon on if condition
Pandry Nov 7, 2018
775ae42
Added bio command
Pandry Nov 7, 2018
6ef1b12
Added bio alias and fixed wrong variable name
Pandry Nov 7, 2018
d195946
Made inline and bio commands available onmly to registred users.
Pandry Nov 7, 2018
5ef672e
Translated user messages to italian
Pandry Nov 7, 2018
a075cc4
Different sign for completelist to indicate all users excapt last one
Pandry Nov 7, 2018
a3fe836
Imoproved subscribed lists format
Pandry Nov 7, 2018
6895a45
Translated inline results
Pandry Nov 7, 2018
3fe57d4
Improved help message
Pandry Nov 7, 2018
bb94c5b
Added help aliases
Pandry Nov 7, 2018
856614f
Added help message
Pandry Nov 7, 2018
3d4fcf5
Added commands to help and resolved bio command aliases conflict
Pandry Nov 7, 2018
a9e8de1
Returning correct message on /info command and fixed method name conf…
Pandry Nov 7, 2018
820a50c
Improved info message
Pandry Nov 7, 2018
b83cce0
Version bump
Pandry Nov 7, 2018
9f0cba5
Added info command to help message text
Pandry Nov 7, 2018
f9c3e97
Added welcome message only on IT group
Pandry Nov 14, 2018
8b3562a
Sei più felice ora Behz? :P
Pandry Dec 7, 2018
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
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
__pycache__
.vscode/
database.sqlitedb
database.sqlitedb
database.sqlitedb-journal
36 changes: 36 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
FROM python:3-alpine

WORKDIR /usr/src/app

COPY requirements.txt ./

#
# The compilation of lxml (a library required and installed by pip) requires more than 1GiB of RAM memory.
# Since I had only 1 GiB of RAM, as a workaround I made a 2GiB swap file
# THIS IS A THING TO AVOID AS MUSH AS POSSIBLE
# Commands executed:
#
# 1. dd if=/dev/zero of=/swapfile bs=2048 count=1M
# 2. chmod 0600 /swapfile
# 3. mkswap /swapfile
# 4. echo "/swapfile swap swap sw 0 0" >>/etc/fstab
# 5. swapon /swapfile
#
# 1. Creates a swapfile and fill it of 0s
# 2. Set permissions for a swap file
# 3. Sets the file a file usable as a swap file
# 4. sets the swap on startup
# 5. enables the swap "hotplugged"


RUN apk add py3-pip openssl py3-lxml \
&& apk add --virtual build-dependencies python3-dev build-base wget libffi-dev openssl-dev libxml2-dev libxslt-dev \
&& rm -rf /var/cache/apk/*

RUN pip install --no-cache-dir -r requirements.txt
RUN apk del build-dependencies


COPY scienzati_bot.py .

CMD [ "python", "./scienzati_bot.py" ]
Binary file removed database.sqlitedb-journal
Binary file not shown.
Binary file added requirements.txt
Binary file not shown.
Loading