/poll Do you like polls
Yes
No
Output:
Poll: Do you like polls?
0 votes have been casted
1. Yes
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0% (Votes: 0)
2. No
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0% (Votes: 0)
/vote 1
Output:
Poll: Do you like polls?
1 votes have been casted
/vote 1 - Yes
/vote 2 - No
/vote 2
Output:
Poll: Do you like polls?
1 votes have been casted
/vote 1 - Yes
/vote 2 - No
/poll close
Output:
Poll: Do you like polls?
100 votes have been casted
1. Yes
████████████████████████████████████████████████░░ 96% (Votes: 96)
2. No
██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4% (Votes: 4)
/poll show
Output:
Poll: Do you like polls?
100 votes have been casted
1. Yes
████████████████████████████████████████████████░░ 96% (Votes: 96)
2. No
██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4% (Votes: 4)
sudo -u www-data
inside the command, because it is automatically run as www-data):
sudo -u www-data php /var/www/nextcloud/occ talk:command:add poll Poll 'php /var/www/nextcloud/occ talk:poll {ROOM} {USER} {ARGUMENTS}' 2 3
sudo -u www-data php /var/www/nextcloud/occ talk:command:add vote Poll 'php /var/www/nextcloud/occ talk:poll:vote {ROOM} {USER} {ARGUMENTS}' 2 3